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

Commit 4c6c96a5 authored by Tao Bao's avatar Tao Bao Committed by Android Git Automerger
Browse files

am 245b2da1: am 754ebaa9: Merge "updater: Skip empty lines in the transfer list file."

* commit '245b2da1':
  updater: Skip empty lines in the transfer list file.
parents 6eb2668d 245b2da1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1428,6 +1428,10 @@ static Value* PerformBlockImageUpdate(const char* name, State* state, int /* arg
    // Subsequent lines are all individual transfer commands
    for (auto it = lines.cbegin() + start; it != lines.cend(); it++) {
        const std::string& line_str(*it);
        if (line_str.empty()) {
            continue;
        }

        char* line = strdup(line_str.c_str());
        params.cmdname = strtok_r(line, " ", &params.cpos);