parse_proxy: make sure portptr is initialized

Reported-by: Benbuck Nason

fixes #3959
This commit is contained in:
Daniel Stenberg 2019-05-28 23:50:49 +02:00
parent a6183ab23a
commit 6961322f70
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -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;