* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
spaces. * tests/grub_script_leading_whitespace.in: New file. * Makefile.util.def (grub_script_leading_whitespace): New test.
This commit is contained in:
parent
ba287dd8e0
commit
ac6fd21803
4 changed files with 20 additions and 0 deletions
|
@ -132,6 +132,9 @@ grub_script_argv_split_append (struct grub_script_argv *argv, const char *s)
|
|||
if (! s)
|
||||
return 0;
|
||||
|
||||
while (*s && grub_isspace (*s))
|
||||
s++;
|
||||
|
||||
while (! errors && *s)
|
||||
{
|
||||
p = s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue