diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-28 23:50:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-28 23:50:49 +0200 |
commit | 6961322f707e210729d504854647e6bca06279e5 (patch) | |
tree | 25c3362fa04c009811bdfbfb343db52112666f2f /lib/url.c | |
parent | a6183ab23a702f45b14affe7ab25996960cd8b1b (diff) | |
download | curl-6961322f707e210729d504854647e6bca06279e5.tar.gz |
parse_proxy: make sure portptr is initialized
Reported-by: Benbuck Nason
fixes #3959
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |