bugfix! Missing error check in argument parsing routine

This commit is contained in:
cozis
2022-08-15 16:38:16 +02:00
parent cb5e41b814
commit 4a326bff7e
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -2023,7 +2023,9 @@ static Node *parse_function_definition(Context *ctx)
int argc = 0; // Initialization for the warning.
Node *argv = parse_function_arguments(ctx, &argc);
if(argv == NULL)
return NULL;
if(done(ctx))
{
Error_Report(ctx->error, 0, "Source ended before function body");