mirror of
https://git.proxmox.com/git/grub2
synced 2025-05-18 22:52:05 +00:00
handle failure case
This commit is contained in:
parent
263b0fa757
commit
d13f69de73
@ -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 New Issue
Block a user