From d962ec0b8f6c3ba7b6b512474f1c5c7635bfe90d Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sun, 22 Aug 2021 13:43:01 +0300 Subject: [PATCH] Fix another nit reported by cppcheck. --- debian/patches/cppcheck.patch | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/debian/patches/cppcheck.patch b/debian/patches/cppcheck.patch index 1c12889..f093eb7 100644 --- a/debian/patches/cppcheck.patch +++ b/debian/patches/cppcheck.patch @@ -1,7 +1,7 @@ -Description: Fix a test case check. +Description: Fix some nits reported by cppcheck. Forwarded: not-yet Author: Peter Pentchev -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 -- 2.30.2