From 5fb18c6b42d0fb432caad5b48f2e00ccf97dee9c Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 22 Dec 2015 09:37:19 -0800 Subject: [PATCH] Make MSVC happy. The MSVC build is failing with: ssl\s3_srvr.c(1363) : warning C4701: potentially uninitialized local variable 'digest_len' used I don't believe that this warning is valid, but this change assigns a value to |digest_len| to fix the build. Change-Id: I20107a932bc16c880032cc1a57479b1a806aa8ea Reviewed-on: https://boringssl-review.googlesource.com/6821 Reviewed-by: Adam Langley --- ssl/s3_srvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 8ca2cf93..72cd1c47 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1344,7 +1344,7 @@ int ssl3_send_server_key_exchange(SSL *ssl) { /* Compute the digest and sign it. */ uint8_t digest[EVP_MAX_MD_SIZE]; - unsigned digest_len; + unsigned digest_len = 0; EVP_MD_CTX md_ctx; EVP_MD_CTX_init(&md_ctx); int digest_ret =