Silence gcc false positive warning on refdatalen in test/tls13encryptiontest.c
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 5 Jun 2020 14:34:51 +0000 (16:34 +0200)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 10 Jun 2020 08:39:26 +0000 (10:39 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/12041)

test/tls13encryptiontest.c

index 479ff4105e5237e2bb623b9419f64344cb538e65..dbe80a20fa0faa32967c11e6ec59266835683852 100644 (file)
@@ -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);