diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index 298d64a26..3d95e9012 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -494,7 +494,7 @@ static char *next_token(char **str) if (!tk_begin) { if (isblank(*p)) continue; - tk_begin = p; + tk_begin = *p == '"' ? p + 1 : p; } if (*p == '"') open_quote ^= 1;