summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
Diffstat (limited to 'cmds')
-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 b54d56c..ca69fff 100644
--- a/cmds/installd/installd.c
+++ b/cmds/installd/installd.c
@@ -243,7 +243,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++) {