Fix another nit reported by cppcheck.
authorPeter Pentchev <roam@debian.org>
Sun, 22 Aug 2021 10:43:01 +0000 (13:43 +0300)
committerPeter Pentchev <roam@debian.org>
Sun, 22 Aug 2021 10:43:01 +0000 (13:43 +0300)
debian/patches/cppcheck.patch

index 1c1288934b8f422d81582b362497a3b635497396..f093eb7609897e73c54d2e3650b54f1b30fee0e9 100644 (file)
@@ -1,7 +1,7 @@
-Description: Fix a test case check.
+Description: Fix some nits reported by cppcheck.
 Forwarded: not-yet
 Author: Peter Pentchev <roam@ringlet.net>
-Last-Update: 2021-08-21
+Last-Update: 2021-08-22
 
 --- a/test/read_single_chunk.c
 +++ b/test/read_single_chunk.c
@@ -14,3 +14,15 @@ Last-Update: 2021-08-21
          printf("%s", zck_get_error(zck));
          zck_free(&zck);
          exit(1);
+--- a/src/lib/comp/zstd/zstd.c
++++ b/src/lib/comp/zstd/zstd.c
+@@ -37,7 +37,9 @@
+     VALIDATE_BOOL(zck);
+     ALLOCD_BOOL(zck, comp);
++#ifndef OLD_ZSTD
+     size_t retval = 0;
++#endif
+     comp->cctx = ZSTD_createCCtx();
+ #ifndef OLD_ZSTD