From: Marcel Raad Date: Thu, 16 Jul 2015 07:09:02 +0000 (+0200) Subject: openssl: work around MSVC warning X-Git-Tag: curl-7_44_0~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98835eed29cd1f3451f0fb16ce1d4551a0e07df4;p=thirdparty%2Fcurl.git openssl: work around MSVC warning MSVC 12 complains: lib\vtls\openssl.c(1554): warning C4701: potentially uninitialized local variable 'verstr' used It's a false positive, but as it's normally not, I have enabled warning-as-error for that warning. --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index beebdc1b72..90e4c2b32a 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -1492,7 +1492,7 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type, char ssl_buf[1024]; char unknown[32]; int msg_type, txt_len; - const char *verstr; + const char *verstr = NULL; struct connectdata *conn = userp; if(!conn || !conn->data || !conn->data->set.fdebug ||