summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-03 16:28:41 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-03 16:28:56 +0200
commit74368dc6ae8f0f17f30f85e77ccb49a6cdf2bc99 (patch)
tree3c641fa05a5bada61dbac57b4035f85c77c590eb
parent2bf7d1b1d2b67987b133f9510333ae2007e711ff (diff)
downloadcurl-74368dc6ae8f0f17f30f85e77ccb49a6cdf2bc99.tar.gz
altsvc: fix 'dsthost' may be used uninitialized in this function
-rw-r--r--lib/altsvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c
index bb72a33a4..371efa275 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -478,7 +478,7 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
dstalpnid = alpn2alpnid(alpnbuf);
p++;
if(*p == '\"') {
- const char *dsthost;
+ const char *dsthost = "";
const char *value_ptr;
char option[32];
unsigned long num;