summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-09-26 02:12:28 +0200
committerTao Bao <tbao@google.com>2015-09-26 02:12:28 +0200
commit6a47dffde514b2510fac9a6842d0c1b160e42fc5 (patch)
tree293e35115ba9b4ec70cb828b9d4fc8cda986f04b /updater
parentMerge changes Ic769eafc,I63f28b3b (diff)
downloadandroid_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.tar
android_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.tar.gz
android_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.tar.bz2
android_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.tar.lz
android_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.tar.xz
android_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.tar.zst
android_bootable_recovery-6a47dffde514b2510fac9a6842d0c1b160e42fc5.zip
Diffstat (limited to '')
-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);