diff options
author | Tao Bao <tbao@google.com> | 2015-10-01 01:29:11 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-10-01 01:29:11 +0200 |
commit | 754ebaa90a3e11012e2456013e69b34a30272c4a (patch) | |
tree | f9126268eeb53366b2da2d799754d3313f5c4cc4 | |
parent | Merge "minadbd: use strdup() to create argument for sideload thread." (diff) | |
parent | updater: Skip empty lines in the transfer list file. (diff) | |
download | android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.tar android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.tar.gz android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.tar.bz2 android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.tar.lz android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.tar.xz android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.tar.zst android_bootable_recovery-754ebaa90a3e11012e2456013e69b34a30272c4a.zip |
-rw-r--r-- | updater/blockimg.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp index ddb474ffd..54f2b6ed7 100644 --- a/updater/blockimg.cpp +++ b/updater/blockimg.cpp @@ -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, " ", ¶ms.cpos); |