mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
* grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
dereference. Reported by: qwertial.
This commit is contained in:
1 parent
3c0003c3c3
commit
e0aacf2433
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -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':
|
||||
|
||||
Reference in new issue
Block a user