* 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>
+
+ * 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.
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"))