Fix an uninit variable usage
authorMatt Caswell <matt@openssl.org>
Wed, 23 Nov 2016 16:06:46 +0000 (16:06 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 23 Nov 2016 16:06:46 +0000 (16:06 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
test/asynciotest.c

index d7b1dd3860c0c35e6f93e40c7882661ca6f3359b..e14747265dedfd1f327042f0765ad0a6e66ea095 100644 (file)
@@ -144,7 +144,7 @@ static int async_write(BIO *bio, const char *in, int inl)
             while (PACKET_remaining(&pkt) > 0) {
                 PACKET payload, wholebody;
                 unsigned int contenttype, versionhi, versionlo, data;
-                unsigned int msgtype = 0, negversion;
+                unsigned int msgtype = 0, negversion = 0;
 
                 if (   !PACKET_get_1(&pkt, &contenttype)
                     || !PACKET_get_1(&pkt, &versionhi)