From a9ee6357a3cf1c1132219dc552f81213e10cff80 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sun, 22 Aug 2021 14:52:18 +0300 Subject: [PATCH] Check the correct value in a test. Spotted by: cppcheck --- test/read_single_chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/read_single_chunk.c b/test/read_single_chunk.c index 3e83971..432cb5d 100644 --- a/test/read_single_chunk.c +++ b/test/read_single_chunk.c @@ -69,7 +69,7 @@ int main (int argc, char *argv[]) { exit(1); } zckChunk *chunk1 = zck_get_chunk(zck, 1); - if(chunk == NULL) { + if(chunk1 == NULL) { printf("%s", zck_get_error(zck)); zck_free(&zck); exit(1); -- 2.30.2