Mercurial > hg > dmlib
changeset 2439:f81b42dd600d
Adjust few comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 Feb 2020 13:40:32 +0200 |
parents | 0b18f597351a |
children | 5b8cb850f5ab |
files | tools/packed.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/packed.c Tue Feb 25 09:40:23 2020 +0200 +++ b/tools/packed.c Tue Feb 25 13:40:32 2020 +0200 @@ -349,6 +349,8 @@ if (compress) { int zret; + + // Initialize compression streams memset(&zstr, 0, sizeof(zstr)); if (deflateInit(&zstr, level) != Z_OK) { @@ -357,7 +359,6 @@ } zinit = TRUE; - // Initialize compression streams zret = Z_OK; while (!feof(inFile) && zret == Z_OK) { @@ -466,6 +467,7 @@ // Read and uncompress the data, if needed if (decompress || (entry->flags & DMF_COMPRESSED) == 0) { + // Initialize compression streams memset(&zstr, 0, sizeof(zstr)); if (inflateInit(&zstr) != Z_OK) { @@ -475,7 +477,6 @@ zinit = TRUE; } - // Initialize compression streams remaining = entry->length; zret = Z_OK; while (remaining > 0 && zret == Z_OK)