commit | 4ddd5edf31908db841ae4974433189408e321d64 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Sat Jun 11 18:42:53 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Jun 11 18:42:53 2016 +0000 |
tree | ea8ef456c6241d791644de1fd7b5cfb828a38953 | |
parent | 5b2191a9d64288398fea1a0149ee14b00004ac4b [diff] | |
parent | efacd80364c7ed42d56310949790d89febaf3444 [diff] |
Merge "updater: Fix the broken ReadFileFn."
diff --git a/updater/install.cpp b/updater/install.cpp index bab2fe1..cfd6a97 100644 --- a/updater/install.cpp +++ b/updater/install.cpp
@@ -1409,7 +1409,7 @@ 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());