Check the correct value in a test.
authorPeter Pentchev <roam@ringlet.net>
Sun, 22 Aug 2021 11:52:18 +0000 (14:52 +0300)
committerPeter Pentchev <roam@ringlet.net>
Sun, 22 Aug 2021 11:52:41 +0000 (14:52 +0300)
Spotted by: cppcheck

test/read_single_chunk.c

index 3e83971731de075dfb3135ce339a8c234c6fcfbb..432cb5df3657d4d6fc1975c07e374576102b67bd 100644 (file)
@@ -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);