am 4c6c96a5: am 245b2da1: am 754ebaa9: Merge "updater: Skip empty lines in the transfer list file."

* commit '4c6c96a59566e8e876cc803be84c16d3f04f31d4':
  updater: Skip empty lines in the transfer list file.
This commit is contained in:
Tao Bao
2015-10-01 00:05:23 +00:00
committed by Android Git Automerger
+4
View File
@@ -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);