Merge "init: fix BuildTriggersString for empty string"

This commit is contained in:
Treehugger Robot 2016-11-15 17:23:56 +00:00 committed by Gerrit Code Review
commit 9b1d5e15ef
1 changed files with 3 additions and 1 deletions

View File

@ -247,7 +247,9 @@ std::string Action::BuildTriggersString() const {
result += event_trigger_;
result += ' ';
}
result.pop_back();
if (!result.empty()) {
result.pop_back();
}
return result;
}