From 8c68b0194d368dd1f9ae04055d6bc90ebffe2be5 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 3 Oct 2013 11:54:58 +0200 Subject: [PATCH] inp_search_closing_paren(), drop found_paren, its always true --- src/frontend/inpcom.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2e0bff772..b70b7fe96 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1808,21 +1808,18 @@ inp_search_closing_paren1(char *s) static char * inp_search_for_closing_paren2(char *s) { - bool found_paren = FALSE; int count = 0; // assert(*s == '(') while (*s != '\0') { - if (*s == '(') { + if (*s == '(') count++; - found_paren = TRUE; - } if (*s == ')') count--; s++; - if (found_paren && count == 0) + if (count == 0) break; } - if (found_paren && count != 0) + if (count != 0) return NULL; return s; }