summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index cc70311b9f..2336334eea 100644
--- a/cmd.c
+++ b/cmd.c
@@ -287,7 +287,8 @@ static char *qemu_strsep(char **input, const char *delim)
{
char *result = *input;
if (result != NULL) {
- char *p = result;
+ char *p;
+
for (p = result; *p != '\0'; p++) {
if (strchr(delim, *p)) {
break;