Fix warning about mixed declarations and code.
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
6d41fc80e6
commit
2dcac136a8
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue