Unverified Commit 6961322f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

parse_proxy: make sure portptr is initialized

Reported-by: Benbuck Nason

fixes #3959
parent a6183ab2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;