From 2ce7b95985ebfe3dddbc12f43bf6b5336eaeed83 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 10 Oct 2014 12:53:12 +0200 Subject: [PATCH] libfdisk: fix script next_token() Signed-off-by: Karel Zak --- libfdisk/src/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;