diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/romcc/romcc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index 2fa400af2b..62fe758ef6 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -4580,6 +4580,9 @@ static void expand_macro(struct compile_state *state, flen = fmacro.pos - fstart; switch(tk->tok) { case TOK_IDENT: + if (macro->argc < 0) { + break; + } for(i = 0; i < macro->argc; i++) { if (argv[i].ident == tk->ident) { break; |