]> git.ozlabs.org Git - petitboot/commitdiff
discover/grub: Fix handling of empty strings
authorSam Mendoza-Jonas <sam@mendozajonas.com>
Tue, 12 Jan 2016 04:58:13 +0000 (15:58 +1100)
committerSam Mendoza-Jonas <sam@mendozajonas.com>
Tue, 9 Feb 2016 02:39:50 +0000 (13:39 +1100)
If "" or '' are used in a statement to omit a word, we must still
return a TOKEN_WORD for an empty string.

In particular this fixes an issue where Petitboot would fail to parse
the grub.cfg included in the Debian 8.2 install image, which includes a
menuentry statement with an empty name.

Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>

No differences found