diff options
Diffstat (limited to 'updater')
-rw-r--r-- | updater/install.cpp | 2 | ||||
-rw-r--r-- | updater/updater.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/updater/install.cpp b/updater/install.cpp index 1a647dfa5..005f9f97d 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -1417,7 +1417,7 @@ Value* ReadFileFn(const char* name, State* state, int argc, Expr* argv[]) { v->data = nullptr; FileContents fc; - if (LoadFileContents(filename, &fc) != 0) { + if (LoadFileContents(filename, &fc) == 0) { v->data = static_cast<char*>(malloc(fc.data.size())); if (v->data != nullptr) { memcpy(v->data, fc.data.data(), fc.data.size()); diff --git a/updater/updater.cpp b/updater/updater.cpp index 96755735e..e956dd557 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -77,7 +77,7 @@ int main(int argc, char** argv) { printf("failed to map package %s\n", argv[3]); return 3; } - ZipArchive za = {}; + ZipArchive za; int err; err = mzOpenZipArchive(map.addr, map.length, &za); if (err != 0) { |