Merge "init: fix BuildTriggersString for empty string"

am: 9b1d5e15ef

Change-Id: Ia344bac744e767ab26d7811ceb2806cce5f28a60
This commit is contained in:
Wei Wang 2016-11-15 17:32:13 +00:00 committed by android-build-merger
commit 4286801ccb

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;
}