Mercurial > hg > dmlib
comparison tools/packed.c @ 2414:69a5af2eb1ea
Remove useless dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 23:27:01 +0200 |
parents | bc05bcfc4598 |
children | 0b18f597351a |
comparison
equal
deleted
inserted
replaced
2413:902cc22018a1 | 2414:69a5af2eb1ea |
---|---|
343 | 343 |
344 // Read (and possibly compress) the data | 344 // Read (and possibly compress) the data |
345 if (compress) | 345 if (compress) |
346 { | 346 { |
347 int zret; | 347 int zret; |
348 dmMemset(&zstr, 0, sizeof(zstr)); | 348 memset(&zstr, 0, sizeof(zstr)); |
349 if (deflateInit(&zstr, level) != Z_OK) | 349 if (deflateInit(&zstr, level) != Z_OK) |
350 { | 350 { |
351 ret = DMERR_COMPRESSION; | 351 ret = DMERR_COMPRESSION; |
352 goto out; | 352 goto out; |
353 } | 353 } |
460 } | 460 } |
461 | 461 |
462 // Read and uncompress the data, if needed | 462 // Read and uncompress the data, if needed |
463 if (decompress || (entry->flags & DMF_COMPRESSED) == 0) | 463 if (decompress || (entry->flags & DMF_COMPRESSED) == 0) |
464 { | 464 { |
465 dmMemset(&zstr, 0, sizeof(zstr)); | 465 memset(&zstr, 0, sizeof(zstr)); |
466 if (inflateInit(&zstr) != Z_OK) | 466 if (inflateInit(&zstr) != Z_OK) |
467 { | 467 { |
468 ret = DMERR_COMPRESSION; | 468 ret = DMERR_COMPRESSION; |
469 goto out; | 469 goto out; |
470 } | 470 } |