Add the cppcheck patch to fix a minor test check.
authorPeter Pentchev <roam@debian.org>
Sat, 21 Aug 2021 15:54:30 +0000 (18:54 +0300)
committerPeter Pentchev <roam@debian.org>
Sat, 21 Aug 2021 15:54:30 +0000 (18:54 +0300)
debian/patches/cppcheck.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/cppcheck.patch b/debian/patches/cppcheck.patch
new file mode 100644 (file)
index 0000000..1c12889
--- /dev/null
@@ -0,0 +1,16 @@
+Description: Fix a test case check.
+Forwarded: not-yet
+Author: Peter Pentchev <roam@ringlet.net>
+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 (file)
index 0000000..ec922c4
--- /dev/null
@@ -0,0 +1 @@
+cppcheck.patch