one more bug fix in grub_script_execute_arglist_to_argv

This commit is contained in:
BVK Chaitanya 2010-01-23 10:28:52 +05:30
parent d63cdb6e70
commit 1368740e69

View file

@ -130,7 +130,7 @@ grub_script_execute_arglist_to_argv (struct grub_script_arglist *arglist, int *c
{ {
case GRUB_SCRIPT_ARG_TYPE_VAR: case GRUB_SCRIPT_ARG_TYPE_VAR:
value = grub_env_get (arg->str); value = grub_env_get (arg->str);
while (*value && (ptr = move_to_next(&value))) while (value && *value && (ptr = move_to_next(&value)))
{ {
empty = 0; empty = 0;
append (ptr, value - ptr); append (ptr, value - ptr);