summaryrefslogtreecommitdiffstats
path: root/test/packettest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-09-09 17:28:17 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-09-09 17:28:17 +0100
commit2dcac136a8c4e37646b717b68eeccc191d074bf0 (patch)
tree6d25731b66555b4081cfd1f0dcda1efa7c42288b /test/packettest.c
parent6d41fc80e6152a6bf9d062b2a8e835a388ed0062 (diff)
Fix warning about mixed declarations and code.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/packettest.c')
-rw-r--r--test/packettest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/packettest.c b/test/packettest.c
index 23b60857f1..9844b203f2 100644
--- a/test/packettest.c
+++ b/test/packettest.c
@@ -258,11 +258,12 @@ static int test_PACKET_memdup(PACKET *pkt, size_t start)
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)