handle failure case
This commit is contained in:
parent
263b0fa757
commit
d13f69de73
1 changed files with 7 additions and 0 deletions
|
@ -128,6 +128,13 @@ grub_script_env_get (const char *name, grub_script_arg_type_t type)
|
|||
scope->argv.args[num - 1]);
|
||||
}
|
||||
}
|
||||
|
||||
if (errors)
|
||||
{
|
||||
grub_script_argv_free (&result);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return result.args;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue