* grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
dereference. Reported by: qwertial.
This commit is contained in:
parent
3c0003c3c3
commit
e0aacf2433
2 changed files with 7 additions and 1 deletions
|
@ -158,7 +158,7 @@ grub_arg_show_help (grub_extcmd_t cmd)
|
|||
show_usage (cmd);
|
||||
grub_printf ("%s\n\n", _(cmd->cmd->description));
|
||||
|
||||
for (opt = cmd->options; opt->doc; opt++)
|
||||
for (opt = cmd->options; opt && opt->doc; opt++)
|
||||
switch (opt->shortarg)
|
||||
{
|
||||
case 'h':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue