aboutsummaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 5b9258b..d3f9915 100644
--- a/pp.c
+++ b/pp.c
@@ -220,8 +220,9 @@ define(void)
if (t->kind == TLPAREN && !t->space) {
m->kind = MACROFUNC;
/* read macro parameter names */
+ p = NULL;
while (scan(&tok), tok.kind != TRPAREN) {
- if (params.len) {
+ if (p) {
if (p->flags & PARAMVAR)
tokencheck(&tok, TRPAREN, "after '...'");
tokencheck(&tok, TCOMMA, "or ')' after macro parameter");