summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-10-01 01:29:11 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-10-01 01:29:11 +0200
commit754ebaa90a3e11012e2456013e69b34a30272c4a (patch)
treef9126268eeb53366b2da2d799754d3313f5c4cc4 /updater
parentMerge "minadbd: use strdup() to create argument for sideload thread." (diff)
parentupdater: Skip empty lines in the transfer list file. (diff)
downloadandroid_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
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.cpp4
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, " ", &params.cpos);