Fix clang uninitialized variable warning.
[openssl.git] / test / packettest.c
index f7f9ec8949df45d3f3aa61155dd6efaa84c8cb91..d6d0c082f5ace42ff327f84da9877c07c9b19fd3 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 = 0;
+    unsigned long i;
 
     if (       !PACKET_goto_bookmark(pkt, start)
             || !PACKET_get_net_3(pkt, &i)
@@ -140,7 +140,6 @@ static int test_PACKET_get_net_3(PACKET *pkt, size_t start)
             || !PACKET_get_net_3(pkt, &i)
             ||  i != 0xfafcfeUL
             ||  PACKET_get_net_3(pkt, &i)) {
-        fprintf(stderr, "i is %ld\n", i);
         fprintf(stderr, "test_PACKET_get_net_3() failed\n");
         return 0;
     }