ash: suppress a compilation warning
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Fri, 1 Jan 2016 23:52:29 +0000 (00:52 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 1 Jan 2016 23:52:29 +0000 (00:52 +0100)
Reported by gcc (Debian 5.3.1-4) 5.3.1 20151219

shell/ash.c: In function 'evaltree':
shell/ash.c:8432:19: warning: logical not is only applied to the left hand side of comparison

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index e7a867f523938b04982bd13b665871df70a5c8d8..daec975c513f83e0f8bc1e61dc912650e8db505a 100644 (file)
@@ -8429,7 +8429,7 @@ evaltree(union node *n, int flags)
                        n->nbinary.ch1,
                        (flags | ((is_or >> 1) - 1)) & EV_TESTED
                );
-               if (!exitstatus == is_or)
+               if ((!exitstatus) == is_or)
                        break;
                if (!evalskip) {
                        n = n->nbinary.ch2;