From: BVK Chaitanya Date: Sat, 23 Jan 2010 04:58:52 +0000 (+0530) Subject: one more bug fix in grub_script_execute_arglist_to_argv X-Git-Tag: 1.99~1004^2~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1368740e693e3030319ae064eecc9e21fe8e6018;p=thirdparty%2Fgrub.git one more bug fix in grub_script_execute_arglist_to_argv --- diff --git a/script/execute.c b/script/execute.c index 5d60e9f8c..c956960da 100644 --- a/script/execute.c +++ b/script/execute.c @@ -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);