diff options
author | Cristian Ionescu-Idbohrn | 2016-01-02 00:52:29 +0100 |
---|---|---|
committer | Denys Vlasenko | 2016-01-02 00:52:29 +0100 |
commit | c2a2625bcbd0d883ca74afb5275e6fd9806936d2 (patch) | |
tree | 6db89a33ae315c611a38333b580282a23fde12da /shell | |
parent | 911d265faf34c90158f5ba0ef81d1d558ec595e6 (diff) | |
download | busybox-c2a2625bcbd0d883ca74afb5275e6fd9806936d2.zip busybox-c2a2625bcbd0d883ca74afb5275e6fd9806936d2.tar.gz |
ash: suppress a compilation warning
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>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index e7a867f..daec975 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -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; |