Commit 4349f732 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

https: flawed logic (alloc error)

parent 0134928b
...@@ -226,7 +226,7 @@ char *vlc_http_res_get_redirect(const struct vlc_http_resource *restrict res, ...@@ -226,7 +226,7 @@ char *vlc_http_res_get_redirect(const struct vlc_http_resource *restrict res,
if (unlikely(asprintf(&url, "%s://%s%.*s", if (unlikely(asprintf(&url, "%s://%s%.*s",
res->secure ? "https" : "http", res->authority, res->secure ? "https" : "http", res->authority,
(int)len, location)) < 0) (int)len, location) < 0))
return NULL; return NULL;
return url; return url;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment