Fix uninitalised warning.
authorBen Laurie <ben@links.org>
Thu, 6 Aug 2015 20:32:58 +0000 (21:32 +0100)
committerBen Laurie <ben@links.org>
Thu, 6 Aug 2015 20:32:58 +0000 (21:32 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
test/packettest.c

index 1ddb837149a6969d27628a2139532b03c984964c..f7f9ec8949df45d3f3aa61155dd6efaa84c8cb91 100644 (file)
@@ -131,7 +131,7 @@ static int test_PACKET_get_net_2(PACKET *pkt, size_t start)
 
 static int test_PACKET_get_net_3(PACKET *pkt, size_t start)
 {
-    unsigned long i;
+    unsigned long i = 0;
 
     if (       !PACKET_goto_bookmark(pkt, start)
             || !PACKET_get_net_3(pkt, &i)