From: Jay Satiro Date: Wed, 5 May 2021 07:16:06 +0000 (-0400) Subject: http2: fix potentially uninitialized variable X-Git-Tag: curl-7_77_0~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba0d3c28ca10b1ca7b6f136055df1cb583f70b63;p=thirdparty%2Fcurl.git http2: fix potentially uninitialized variable introduced several days ago in 3193170. caught by visual studio linker. --- diff --git a/lib/http2.c b/lib/http2.c index d59571ed23..03c101e357 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -499,7 +499,7 @@ static int set_transfer_url(struct Curl_easy *data, const char *v; CURLU *u = curl_url(); CURLUcode uc; - char *url; + char *url = NULL; int rc = 0; v = curl_pushheader_byname(hp, ":scheme");