2009-12-13 Carles Pina i Estany <carles@pina.cat>

* script/execute.c (grub_script_execute_cmdline): Set grub_errno to
	GRUB_ERR_NONE before calling grub_env_set.
This commit is contained in:
Carles Pina i Estany 2009-12-13 12:35:20 +00:00
parent dc0c71d974
commit 3102743011
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2009-12-13 Carles Pina i Estany <carles@pina.cat>
* script/execute.c (grub_script_execute_cmdline): Set grub_errno to
GRUB_ERR_NONE before calling grub_env_set.
2009-12-12 Robert Millan <rmh@aybabtu.com>
* gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.

View file

@ -113,13 +113,13 @@ grub_script_execute_cmdline (struct grub_script_cmd *cmd)
if (eq)
{
/* This was set because the command was not found. */
grub_errno = GRUB_ERR_NONE;
/* Create two strings and set the variable. */
*eq = '\0';
eq++;
grub_env_set (assign, eq);
/* This was set because the command was not found. */
grub_errno = GRUB_ERR_NONE;
}
grub_free (assign);