]> granicus.if.org Git - curl/commitdiff
digest_sspi: fix compilation warning
authorMarcel Raad <raad@teamviewer.com>
Mon, 27 Feb 2017 12:05:22 +0000 (13:05 +0100)
committerMarcel Raad <raad@teamviewer.com>
Mon, 27 Feb 2017 12:05:22 +0000 (13:05 +0100)
MSVC complains:
warning C4701: potentially uninitialized local variable 'output_token_len' used

lib/vauth/digest_sspi.c

index 15f3d8c14b3179801b4dc112f5ec8aa31ff08275..a6eea5ca641bfbed159933163313fcf4612db024 100644 (file)
@@ -412,7 +412,7 @@ CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,
   size_t token_max;
   char *resp;
   BYTE *output_token;
-  size_t output_token_len;
+  size_t output_token_len = 0;
   PSecPkgInfo SecurityPackage;
   SecBuffer chlg_buf[5];
   SecBufferDesc chlg_desc;