Merge \\\\"updater: Fix the broken ReadFileFn.\\\\" am: 4ddd5edf31 am: 89dfe730d4 am: 1e67422f37
am: d241c85cd0
Change-Id: Id5d0de845b101668ff30d19cc257d78e0575e58d
diff --git a/updater/install.cpp b/updater/install.cpp
index a65b32d..4148e54 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -1418,7 +1418,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());