diff options
author | Marcel Raad <MarcelRaad@users.noreply.github.com> | 2015-07-16 09:09:02 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-07-24 00:12:31 +0200 |
commit | 98835eed29cd1f3451f0fb16ce1d4551a0e07df4 (patch) | |
tree | c317edc100ef0ce1163b9c221ac89e5f19eabdc5 | |
parent | cee21eb6a7752f90fe3e2ee260a31ce0a9eeaaa0 (diff) |
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.
-rw-r--r-- | lib/vtls/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index beebdc1b7..90e4c2b32 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 || |