* script/execute.c (grub_script_execute_cmdline): Check for NULL
as command name case.
This commit is contained in:
parent
a870a783be
commit
c9f7ff97cf
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
|
||||
|
||||
* script/execute.c (grub_script_execute_cmdline): Check for NULL
|
||||
as command name case.
|
||||
|
||||
2010-08-02 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* disk/raid.c (insert_array): Select unique numbers for named arrays
|
||||
|
|
|
@ -207,7 +207,7 @@ grub_script_execute_cmdline (struct grub_script_cmd *cmd)
|
|||
|
||||
/* Lookup the command. */
|
||||
args = grub_script_execute_arglist_to_argv (cmdline->arglist, &argcount);
|
||||
if (!args)
|
||||
if (! args || ! args[0])
|
||||
return grub_errno;
|
||||
|
||||
cmdname = args[0];
|
||||
|
|
Loading…
Reference in a new issue