From f0a2d928e9d9c7951997bc984005e44e59ca59fb Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 20 Apr 2020 19:01:27 +0200 Subject: Fix possibly uninitialized variable use --- src/cc4group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf