summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-11-20 05:24:59 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-11-30 04:27:39 +0100
commitb523650c8ecb6751409120a38e52a66a3e48753f (patch)
tree895e254cec518caaefc251950df604c0db0e8381 /updater
parentFix libcrypto dependency in 6.0 trees (diff)
parentmerge in nyc-dr1-release history after reset to nyc-dr1-dev (diff)
downloadandroid_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.gz
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.bz2
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.lz
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.xz
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.zst
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.zip
Diffstat (limited to '')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index 88f771471..b17c34fb2 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -1421,7 +1421,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());