Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86e7b8c3 authored by Wei Wang's avatar Wei Wang Committed by android-build-merger
Browse files

init: fix undefined behavior in ExecuteCommand am: d67a4abc am: 279f3d59

am: 737d0f52

Change-Id: Icc5e6a269e75df1ab1b114fc1d63010ac7487cf1
parents 68a66a3e 737d0f52
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -105,7 +105,10 @@ std::size_t Action::NumCommands() const {
}

void Action::ExecuteOneCommand(std::size_t command) const {
    ExecuteCommand(commands_[command]);
    // We need a copy here since some Command execution may result in
    // changing commands_ vector by importing .rc files through parser
    Command cmd = commands_[command];
    ExecuteCommand(cmd);
}

void Action::ExecuteAllCommands() const {
+3 −3

File changed.

Contains only whitespace changes.