projects
/
zchunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ee635
)
Only declare a variable if it will be used.
author
Peter Pentchev
<roam@ringlet.net>
Sun, 22 Aug 2021 11:51:49 +0000
(14:51 +0300)
committer
Peter Pentchev
<roam@ringlet.net>
Sun, 22 Aug 2021 11:52:41 +0000
(14:52 +0300)
Spotted by: cppcheck
src/lib/comp/zstd/zstd.c
patch
|
blob
|
history
diff --git
a/src/lib/comp/zstd/zstd.c
b/src/lib/comp/zstd/zstd.c
index 628edc75b83df41ceb4868068829b5202ff6d678..921426fcfc489a61806e279590e8cbfa31c2a412 100644
(file)
--- a/
src/lib/comp/zstd/zstd.c
+++ b/
src/lib/comp/zstd/zstd.c
@@
-37,7
+37,9
@@
static bool init(zckCtx *zck, zckComp *comp) {
VALIDATE_BOOL(zck);
ALLOCD_BOOL(zck, comp);
+#ifndef OLD_ZSTD
size_t retval = 0;
+#endif
comp->cctx = ZSTD_createCCtx();
#ifndef OLD_ZSTD