]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: fix script next_token()
authorKarel Zak <kzak@redhat.com>
Fri, 10 Oct 2014 10:53:12 +0000 (12:53 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 10 Oct 2014 10:53:12 +0000 (12:53 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/script.c

index 298d64a269f3b9f4a6cd737f5824f748587fa310..3d95e9012909f3476e90e31441e416b03c3b8609 100644 (file)
@@ -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;