shithub: scc

Download patch

ref: e09ad0442d5af5784989e81a81b390bed5295d13
parent: 804ee8287281ddb95bf676825021f944a6fbe398
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jun 29 06:59:04 EDT 2012

Fixed bug testing function declaration

In the case of declaration without type we will have a null pointer indirection.

--- a/decl.c
+++ b/decl.c
@@ -130,8 +130,7 @@
 			warning_error(user_opt.implicit_int,
 				      "type defaults to 'int' in declaration of '%s'",
 				      yytext);
-		}
-		if (tp->op == FTN && yytoken == '{') {
+		} else if (tp->op == FTN && yytoken == '{') {
 			compound();
 			return;
 		}