[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-cflow] parser's bug (Segmentation fault)
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-cflow] parser's bug (Segmentation fault) |
Date: |
Thu, 03 Nov 2005 16:47:10 EET |
Shigio YAMAGUCHI <address@hidden> wrote:
> I believe I have found a bug.
Yes, you did. Here is the fix:
Index: src/parser.c
===================================================================
RCS file: /cvsroot/cflow/cflow/src/parser.c,v
retrieving revision 1.33
diff -p -u -r1.33 parser.c
--- src/parser.c 5 Oct 2005 12:30:01 -0000 1.33
+++ src/parser.c 3 Nov 2005 14:21:29 -0000
@@ -748,8 +748,7 @@ dcl(Ident *idptr)
else if (type != MODIFIER)
break;
} else if (tok.type == ')') {
- putback();
- break;
+ return 1;
}
}
if (idptr && idptr->type_end == -1)
Domo arigato!
Regards,
Sergey