handle failure case

This commit is contained in:
BVK Chaitanya 2010-05-12 10:45:22 +05:30
parent 263b0fa757
commit d13f69de73

View file

@ -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;
}