2009-05-03 Bean <bean123ch@gmail.com>

* script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
	after we get the result of if statement.
This commit is contained in:
bean 2009-05-03 06:50:20 +00:00
parent fc45fb586d
commit 038c5720de
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-05-03 Bean <bean123ch@gmail.com>
* script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
after we get the result of if statement.
2009-05-03 Bean <bean123ch@gmail.com>
* Makefile.in (enable_efiemu): New variable.

View File

@ -180,6 +180,8 @@ grub_script_execute_cmdif (struct grub_script_cmd *cmd)
grub_script_execute_cmd (cmdif->exec_to_evaluate);
result = grub_env_get ("?");
grub_errno = GRUB_ERR_NONE;
/* Execute the `if' or the `else' part depending on the value of
`?'. */
if (result && ! grub_strcmp (result, "0"))