提交 2dcac136 编写于 作者: D Dr. Stephen Henson

Fix warning about mixed declarations and code.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 6d41fc80
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册