summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2020-04-20 19:01:27 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2020-04-20 19:01:27 +0200
commitf0a2d928e9d9c7951997bc984005e44e59ca59fb (patch)
tree0f961b21ae9ab56c65f817f0d241fa74fabd1bd4 /src
parent327b9ad4985a1939826746c98b44957dd4ca59ce (diff)
downloadcc4group-f0a2d928e9d9c7951997bc984005e44e59ca59fb.tar.gz
cc4group-f0a2d928e9d9c7951997bc984005e44e59ca59fb.zip
Fix possibly uninitialized variable use
Diffstat (limited to 'src')
-rw-r--r--src/cc4group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index c3454f8..0483eea 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -2529,6 +2529,7 @@ static bool cc4group_saveWithWriteCallback(CC4Group* const this, CC4Group_WriteC
return false;
}
+ bool success = false;
bool deflateStarted = false;
int ret = deflateInit2(&callback.gzStream, 9, Z_DEFLATED, 15 + 16, 9, Z_DEFAULT_STRATEGY);
if(ret != Z_OK)
@@ -2546,7 +2547,6 @@ static bool cc4group_saveWithWriteCallback(CC4Group* const this, CC4Group_WriteC
goto ret;
}
- bool success = false;
cc4group_calculateEntrySizes(this, &this->root);
cc4group_calculateEntryCRC(this, &this->root);