Merge pull request #89 from alliedmodders/bug-6176

Fix crash with malformed arguments (bug 6176).
This commit is contained in:
David Anderson 2014-07-13 11:26:57 -07:00
commit 9c6b82f3a5
3 changed files with 9 additions and 0 deletions

View File

@ -6654,6 +6654,10 @@ static void statement(int *lastindent,int allow_decl)
} }
if (is_decl) { if (is_decl) {
if (!allow_decl) {
error(3);
return;
}
lexpush(); lexpush();
autozero = TRUE; autozero = TRUE;
lastst = tNEW; lastst = tNEW;

View File

@ -0,0 +1,4 @@
stock void Function( float array1[ 3 ] float array2[ 3 ] )
{
}

View File

@ -0,0 +1 @@
(1) : error 001: expected token: ")", but found "-identifier-"