Fix warning about mixed declarations and code. Reviewed-by: Richard Levitte <levitte@openssl.org>
diff --git a/test/packettest.c b/test/packettest.c index 23b6085..9844b20 100644 --- a/test/packettest.c +++ b/test/packettest.c
@@ -258,11 +258,12 @@ static int test_PACKET_strndup() { char buf[10], buf2[10]; + char *data = NULL; + PACKET pkt; + memset(buf, 'x', 10); memset(buf2, 'y', 10); buf2[5] = '\0'; - char *data = NULL; - PACKET pkt; if ( !PACKET_buf_init(&pkt, (unsigned char*)buf, 10) || !PACKET_strndup(&pkt, &data)