From: Andrei Borzenkov Date: Fri, 30 Jan 2015 17:21:56 +0000 (+0300) Subject: test: fix previous commit - we need to return from subexpression X-Git-Tag: 2.02-beta3~449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=958167b91cdebe55c6cccdd28ad007c554df56d7;p=thirdparty%2Fgrub.git test: fix previous commit - we need to return from subexpression ( ... ) was processed recursively, we need to return from it. Revert this change. --- diff --git a/grub-core/commands/test.c b/grub-core/commands/test.c index f58b87c64..5f06642f6 100644 --- a/grub-core/commands/test.c +++ b/grub-core/commands/test.c @@ -387,7 +387,7 @@ test_parse (char **args, int *argn, int argc) if (grub_strcmp (args[*argn], ")") == 0) { (*argn)++; - continue; + return ctx.or || ctx.and; } /* Recursively invoke if parenthesis. */ if (grub_strcmp (args[*argn], "(") == 0)