From: Dr. David von Oheimb Date: Fri, 5 Jun 2020 14:34:51 +0000 (+0200) Subject: Silence gcc false positive warning on refdatalen in test/tls13encryptiontest.c X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1349865a5621ce69f09ff4a0991afd74648df72b;p=oweals%2Fopenssl.git Silence gcc false positive warning on refdatalen in test/tls13encryptiontest.c Reviewed-by: Matt Caswell Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/12041) --- diff --git a/test/tls13encryptiontest.c b/test/tls13encryptiontest.c index 479ff4105e..dbe80a20fa 100644 --- a/test/tls13encryptiontest.c +++ b/test/tls13encryptiontest.c @@ -288,7 +288,7 @@ static int test_record(SSL3_RECORD *rec, RECORD_DATA *recd, int enc) { int ret = 0; unsigned char *refd; - size_t refdatalen; + size_t refdatalen = 0; if (enc) refd = multihexstr2buf(recd->ciphertext, &refdatalen);