projects
/
zchunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07ce3eb
)
Check the correct value in a test.
author
Peter Pentchev
<roam@ringlet.net>
Sun, 22 Aug 2021 11:52:18 +0000
(14:52 +0300)
committer
Peter Pentchev
<roam@ringlet.net>
Sun, 22 Aug 2021 11:52:41 +0000
(14:52 +0300)
Spotted by: cppcheck
test/read_single_chunk.c
patch
|
blob
|
history
diff --git
a/test/read_single_chunk.c
b/test/read_single_chunk.c
index 3e83971731de075dfb3135ce339a8c234c6fcfbb..432cb5df3657d4d6fc1975c07e374576102b67bd 100644
(file)
--- a/
test/read_single_chunk.c
+++ b/
test/read_single_chunk.c
@@
-69,7
+69,7
@@
int main (int argc, char *argv[]) {
exit(1);
}
zckChunk *chunk1 = zck_get_chunk(zck, 1);
- if(chunk == NULL) {
+ if(chunk
1
== NULL) {
printf("%s", zck_get_error(zck));
zck_free(&zck);
exit(1);