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 41b67ed..af36686 100644
--- a/pp.c
+++ b/pp.c
@@ -112,7 +112,8 @@ next(void)
bool
peek(int kind)
{
- nextinto(&pending);
+ if (!pending.kind)
+ nextinto(&pending);
if (pending.kind != kind)
return false;
pending.kind = TNONE;