projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d41fc8
)
Fix warning about mixed declarations and code.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 9 Sep 2015 16:28:17 +0000
(17:28 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 9 Sep 2015 16:28:17 +0000
(17:28 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
test/packettest.c
patch
|
blob
|
history
diff --git
a/test/packettest.c
b/test/packettest.c
index 23b60857f19610635ac0df7f63b4a38b8a91657e..9844b203f2020d069cbc30ac4404ea33f7ec3c40 100644
(file)
--- 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)