* grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline

handling.
This commit is contained in:
Vladimir Serbinenko 2013-11-09 17:31:21 +01:00
parent 3c98038174
commit 2df1255117
2 changed files with 8 additions and 0 deletions

View file

@ -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> 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/i386/cmostest.c: Add new command "cmosset". * grub-core/commands/i386/cmostest.c: Add new command "cmosset".

View file

@ -56,6 +56,9 @@ unsigned int grub_loader_cmdline_size (int argc, char *argv[])
size++; /* Separator space or NULL. */ size++; /* Separator space or NULL. */
} }
if (size == 0)
size = 1;
return size; return size;
} }