diff --git a/cmd.c b/cmd.c index d86ba7ccb421608907c8ec8b3c4eba2c4ae3384d..3c89a0527ecceaa2994f52d943679f2923ece351 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; } }