commit | 8256062afc7a056f64170af5a080a08921ea69f4 | [log] [tgz] |
---|---|---|
author | Wei Wang <wvw@google.com> | Tue Nov 15 17:39:45 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Tue Nov 15 17:39:45 2016 +0000 |
tree | 167e2f7c446e537cb37e2b0779d09e1d0267b929 | |
parent | 6133e6457576b3a85e5d7949f9bddf33a21e487e [diff] | |
parent | 4286801ccb6a4adb61e6cfc11273f36c1c26eeea [diff] |
Merge "init: fix BuildTriggersString for empty string" am: 9b1d5e15ef am: 4286801ccb Change-Id: I6744e47cc9e85f86217d0c6ecc96e6011e82d99a
diff --git a/init/action.cpp b/init/action.cpp index ed88f6d..ccc18cf 100644 --- a/init/action.cpp +++ b/init/action.cpp
@@ -247,7 +247,9 @@ result += event_trigger_; result += ' '; } - result.pop_back(); + if (!result.empty()) { + result.pop_back(); + } return result; }