]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
one more bug fix in grub_script_execute_arglist_to_argv
authorBVK Chaitanya <bvk.groups@gmail.com>
Sat, 23 Jan 2010 04:58:52 +0000 (10:28 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Sat, 23 Jan 2010 04:58:52 +0000 (10:28 +0530)
script/execute.c

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