am 754ebaa9: Merge "updater: Skip empty lines in the transfer list file."
* commit '754ebaa90a3e11012e2456013e69b34a30272c4a':
updater: Skip empty lines in the transfer list file.
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index ddb474f..54f2b6e 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1428,6 +1428,10 @@
// 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);