inp_search_closing_paren(), cleanup

This commit is contained in:
rlar 2013-10-03 11:54:58 +02:00
parent 8c68b0194d
commit f8a06900c2
1 changed files with 3 additions and 1 deletions

View File

@ -1792,12 +1792,14 @@ inp_search_closing_paren1(char *s)
{
int count = 1;
// assert(*s == '(')
while (count != 0 && *s != '\0') {
while (*s != '\0') {
s++;
if (*s == '(')
count++;
if (*s == ')')
count--;
if (count == 0)
break;
}
if (count != 0)
return NULL;