1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 21:15:08 -05:00

altsvc: fix 'dsthost' may be used uninitialized in this function

This commit is contained in:
Daniel Stenberg 2020-06-03 16:28:41 +02:00
parent 2bf7d1b1d2
commit 74368dc6ae
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -478,7 +478,7 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
dstalpnid = alpn2alpnid(alpnbuf); dstalpnid = alpn2alpnid(alpnbuf);
p++; p++;
if(*p == '\"') { if(*p == '\"') {
const char *dsthost; const char *dsthost = "";
const char *value_ptr; const char *value_ptr;
char option[32]; char option[32];
unsigned long num; unsigned long num;