From: Daniel Stenberg Date: Tue, 28 May 2019 21:50:49 +0000 (+0200) Subject: parse_proxy: make sure portptr is initialized X-Git-Tag: curl-7_65_1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6961322f707e210729d504854647e6bca06279e5;p=thirdparty%2Fcurl.git parse_proxy: make sure portptr is initialized Reported-by: Benbuck Nason fixes #3959 --- diff --git a/lib/url.c b/lib/url.c index 51515c924d..086e214e47 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2310,7 +2310,7 @@ static CURLcode parse_proxy(struct Curl_easy *data, struct connectdata *conn, char *proxy, curl_proxytype proxytype) { - char *portptr; + char *portptr = NULL; long port = -1; char *proxyuser = NULL; char *proxypasswd = NULL;