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:
parent
fc45fb586d
commit
038c5720de
2 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue