diff --git a/cmd.c b/cmd.c index d86ba7ccb4..3c89a0527e 100644 --- a/cmd.c +++ b/cmd.c @@ -288,9 +288,9 @@ static char *qemu_strsep(char **input, const char *delim) { char *result = *input; if (result != NULL) { - char *p = result; - for (p = result; *p != '\0'; p++) { - if (strchr(delim, *p)) { + char *p = result; + for (p = result; *p != '\0'; p++) { + if (strchr(delim, *p)) { break; } }