changeset 641:90274e6d4d5a

*** empty log message ***
author kono
date Wed, 01 Nov 2006 01:42:17 +0900
parents 04211a2cf227
children e9622935a621
files mc-parse.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mc-parse.c	Wed Nov 01 01:27:11 2006 +0900
+++ b/mc-parse.c	Wed Nov 01 01:42:17 2006 +0900
@@ -899,7 +899,10 @@
     while (sym==ATTRIBUTE||sym==ASM) { getsym(0); attributes(); }
     if(sym==LC || ( sym!=SM && sym!=COMMA && sym!=ASS)) {
 	/* function body */
-	if (mode!=GDECL) error(DCERR);
+	if (mode!=GDECL) {
+	    error(DCERR);
+	    return; // we cannot trust it's arguments
+	}
         stypedecl=sd;
 	if (type<0) error(DCERR);
 	else if (car(type)==CODE) {