[3/18] Fix braino in which_kind()
diff mbox

Message ID E1LgZdG-0000rw-0M@ZenIV.linux.org.uk
State Mainlined, archived
Headers show

Commit Message

Al Viro March 9, 2009, 7:10 a.m. UTC
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch
diff mbox

diff --git a/parse.c b/parse.c
index 74a8103..08de424 100644
--- a/parse.c
+++ b/parse.c
@@ -1260,7 +1260,7 @@  static enum kind which_kind(struct token *token, struct token **p,
 	}
 
 	if (token_type(next) != TOKEN_SPECIAL)
-		return dont_nest ? Bad_Nested : Bad_Func;
+		return !dont_nest ? Bad_Nested : Bad_Func;
 
 	if (next->special == ')') {
 		/* don't complain about those */