The branch master has been updated
       via  2dcac136a8c4e37646b717b68eeccc191d074bf0 (commit)
      from  6d41fc80e6152a6bf9d062b2a8e835a388ed0062 (commit)


- Log -----------------------------------------------------------------
commit 2dcac136a8c4e37646b717b68eeccc191d074bf0
Author: Dr. Stephen Henson <[email protected]>
Date:   Wed Sep 9 17:28:17 2015 +0100

    Fix warning about mixed declarations and code.
    
    Reviewed-by: Richard Levitte <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 test/packettest.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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_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)
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to