diff options
author | Wei Wang <wvw@google.com> | 2016-11-17 03:54:57 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-11-17 03:54:57 +0000 |
commit | 279f3d593fef224a25324800d03b61d256c1e4dd (patch) | |
tree | 3203d2b82f2cbdc96dba59f9ff44ee0660ffe35b /init/builtins.cpp | |
parent | 3567c7c9d910379eddb44cd584b540fdd15f7f4b (diff) | |
parent | d67a4abc647d5ed7235ff7ee1695b31340e63a1c (diff) |
init: fix undefined behavior in ExecuteCommand
am: d67a4abc64
Change-Id: I1ecbb1d083af62dd5e69b4cff19ec411016054f3
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r-- | init/builtins.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index de75438ff..4774df8d1 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -594,9 +594,9 @@ static int do_mount_all(const std::vector<std::string>& args) { for (na = args.size() - 1; na > 1; --na) { if (args[na] == "--early") { - path_arg_end = na; - queue_event = false; - mount_mode = MOUNT_MODE_EARLY; + path_arg_end = na; + queue_event = false; + mount_mode = MOUNT_MODE_EARLY; } else if (args[na] == "--late") { path_arg_end = na; import_rc = false; |