* grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
handling.
This commit is contained in:
parent
3c98038174
commit
2df1255117
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
|
||||
handling.
|
||||
|
||||
2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/i386/cmostest.c: Add new command "cmosset".
|
||||
|
|
|
@ -56,6 +56,9 @@ unsigned int grub_loader_cmdline_size (int argc, char *argv[])
|
|||
size++; /* Separator space or NULL. */
|
||||
}
|
||||
|
||||
if (size == 0)
|
||||
size = 1;
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue