* commit '245b2da1711db8a9b8e333395d68235df5163483': updater: Skip empty lines in the transfer list file.
This commit is contained in:
@@ -1428,6 +1428,10 @@ static Value* PerformBlockImageUpdate(const char* name, State* state, int /* arg
|
|||||||
// Subsequent lines are all individual transfer commands
|
// Subsequent lines are all individual transfer commands
|
||||||
for (auto it = lines.cbegin() + start; it != lines.cend(); it++) {
|
for (auto it = lines.cbegin() + start; it != lines.cend(); it++) {
|
||||||
const std::string& line_str(*it);
|
const std::string& line_str(*it);
|
||||||
|
if (line_str.empty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
char* line = strdup(line_str.c_str());
|
char* line = strdup(line_str.c_str());
|
||||||
params.cmdname = strtok_r(line, " ", ¶ms.cpos);
|
params.cmdname = strtok_r(line, " ", ¶ms.cpos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user