Revision: 2166
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2166
Author:   bean
Date:     2009-05-03 06:50:20 +0000 (Sun, 03 May 2009)
Log Message:
-----------
2009-05-03  Bean  <[email protected]>

        * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
        after we get the result of if statement.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/script/sh/execute.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-05-03 06:39:37 UTC (rev 2165)
+++ trunk/grub2/ChangeLog       2009-05-03 06:50:20 UTC (rev 2166)
@@ -1,5 +1,10 @@
 2009-05-03  Bean  <[email protected]>
 
+       * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
+       after we get the result of if statement.
+
+2009-05-03  Bean  <[email protected]>
+
        * Makefile.in (enable_efiemu): New variable.
 
        * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is

Modified: trunk/grub2/script/sh/execute.c
===================================================================
--- trunk/grub2/script/sh/execute.c     2009-05-03 06:39:37 UTC (rev 2165)
+++ trunk/grub2/script/sh/execute.c     2009-05-03 06:50:20 UTC (rev 2166)
@@ -180,6 +180,8 @@
   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"))



Reply via email to