From 1886274cf43f56963ccf580f8bdaad04b2cbaf99 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sat, 21 Aug 2021 18:54:30 +0300 Subject: [PATCH] Add the cppcheck patch to fix a minor test check. --- debian/patches/cppcheck.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 2 files changed, 17 insertions(+) create mode 100644 debian/patches/cppcheck.patch create mode 100644 debian/patches/series diff --git a/debian/patches/cppcheck.patch b/debian/patches/cppcheck.patch new file mode 100644 index 0000000..1c12889 --- /dev/null +++ b/debian/patches/cppcheck.patch @@ -0,0 +1,16 @@ +Description: Fix a test case check. +Forwarded: not-yet +Author: Peter Pentchev +Last-Update: 2021-08-21 + +--- a/test/read_single_chunk.c ++++ b/test/read_single_chunk.c +@@ -69,7 +69,7 @@ + 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); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ec922c4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +cppcheck.patch -- 2.30.2