diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-11 21:39:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-11 21:39:42 +0300 |
commit | a721e4898f71a68ecb916940864599d462880e5b (patch) | |
tree | 50442e8b86707221f498ea0f304a5314a0e67430 /src/fs/virtfs/zip.cpp | |
parent | 81b97b30afa0c72e5ff17162c7d1fa88dd6187fb (diff) | |
download | plus-a721e4898f71a68ecb916940864599d462880e5b.tar.gz plus-a721e4898f71a68ecb916940864599d462880e5b.tar.bz2 plus-a721e4898f71a68ecb916940864599d462880e5b.tar.xz plus-a721e4898f71a68ecb916940864599d462880e5b.zip |
Fix different issues found by automatic checks.
Diffstat (limited to 'src/fs/virtfs/zip.cpp')
-rw-r--r-- | src/fs/virtfs/zip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/virtfs/zip.cpp b/src/fs/virtfs/zip.cpp index 5ce90069e..d7bb095c3 100644 --- a/src/fs/virtfs/zip.cpp +++ b/src/fs/virtfs/zip.cpp @@ -89,7 +89,6 @@ namespace Zip archiveName.c_str()); return false; } - size_t cnt = 0U; uint8_t *const buf = new uint8_t[65535 + 10]; uint16_t val16 = 0U; uint16_t method = 0U; @@ -102,6 +101,7 @@ namespace Zip // format source https://en.wikipedia.org/wiki/Zip_%28file_format%29 while (feof(arcFile) == 0) { + size_t cnt = 0U; // file header pointer on 0 // read file header signature readVal(buf, 4, "zip file header"); // + 4 |