From: Peter Pentchev Date: Sat, 21 Aug 2021 15:54:30 +0000 (+0300) Subject: Add the cppcheck patch to fix a minor test check. X-Git-Tag: archive/raspbian/1.2.1+ds1-1+rpi1~1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1886274cf43f56963ccf580f8bdaad04b2cbaf99;p=zchunk.git Add the cppcheck patch to fix a minor test check. --- 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