Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d241c85c authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge \\\"updater: Fix the broken ReadFileFn.\\\" am: 4ddd5edf am: 89dfe730

am: 1e67422f

Change-Id: I3beade52bfaeea0e84055d007d82ff2ef5c07dbb
parents d8f51960 1e67422f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1418,7 +1418,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());