diff options
-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); |