From d62724ab4f1d68702a867184b9df1430a7bd5ff8 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 29 Mar 2019 09:05:24 +0100 Subject: [PATCH] Update test.c fix compiler warnings. --- contrib/zip/test/test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/zip/test/test.c b/contrib/zip/test/test.c index c455bf687..454430533 100644 --- a/contrib/zip/test/test.c +++ b/contrib/zip/test/test.c @@ -102,8 +102,7 @@ static void test_read(void) { assert(0 == zip_entry_close(zip)); free(buf); buf = NULL; - bufsize = 0; - + assert(0 == zip_entry_open(zip, "test/test-2.txt")); assert(strlen(TESTDATA2) == zip_entry_size(zip)); assert(CRC32DATA2 == zip_entry_crc32(zip)); @@ -132,8 +131,7 @@ static void test_read(void) { assert(0 == zip_entry_close(zip)); free(buf); buf = NULL; - bufsize = 0; - + buftmp = strlen(TESTDATA1); buf = calloc(buftmp, sizeof(char)); assert(0 == zip_entry_open(zip, "test/test-1.txt"));