]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
altsvc: fix 'dsthost' may be used uninitialized in this function
authorDaniel Stenberg <daniel@haxx.se>
Wed, 3 Jun 2020 14:28:41 +0000 (16:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Jun 2020 14:28:56 +0000 (16:28 +0200)
lib/altsvc.c

index bb72a33a4fbf27921b6c58b39115080a5ceb9f4e..371efa27557bb4e40cfc9c883416cd4cfb38342e 100644 (file)
@@ -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;