summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2014-11-21 05:02:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-11-21 05:02:51 +0000
commit754f16fcf4b56f52450f91e3e840bad8a2cc997c (patch)
treec6100a9f89e27fed0690548a9e331f57e6484c37
parentc894c2045f589571c80af0648e7a9dcd7e97b6a8 (diff)
parent62bb385728121b456782d205f6e27d0c18be9c0b (diff)
downloadnative-754f16fcf4b56f52450f91e3e840bad8a2cc997c.tar.gz
Merge "Fix installd command line parser"
-rw-r--r--cmds/installd/installd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/installd/installd.c b/cmds/installd/installd.c
index 509909db09..7caa146546 100644
--- a/cmds/installd/installd.c
+++ b/cmds/installd/installd.c
@@ -255,7 +255,9 @@ static int execute(int s, char cmd[BUFFER_MAX])
goto done;
}
}
- cmd++;
+ if (*cmd) {
+ cmd++;
+ }
}
for (i = 0; i < sizeof(cmds) / sizeof(cmds[0]); i++) {