mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-08 06:40:50 +00:00
* grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
the begining of the string
This commit is contained in:
parent
2053cc077b
commit
3c7079670d
@ -1,3 +1,8 @@
|
|||||||
|
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
|
||||||
|
the begining of the string
|
||||||
|
|
||||||
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/script/script.c (grub_script_parse): Free parsed on
|
* grub-core/script/script.c (grub_script_parse): Free parsed on
|
||||||
|
@ -236,7 +236,7 @@ grub_script_lexer_init (struct grub_parser_param *parser, char *script,
|
|||||||
script = script ? : "\n";
|
script = script ? : "\n";
|
||||||
len = grub_strlen (script);
|
len = grub_strlen (script);
|
||||||
|
|
||||||
if (script[len - 1] == '\n')
|
if (len != 0 && script[len - 1] == '\n')
|
||||||
{
|
{
|
||||||
buffer = yy_scan_string (script, lexerstate->yyscanner);
|
buffer = yy_scan_string (script, lexerstate->yyscanner);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user