summaryrefslogtreecommitdiff
path: root/usr.bin/pcc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/pcc')
-rw-r--r--usr.bin/pcc/cc/ccom/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pcc/cc/ccom/init.c b/usr.bin/pcc/cc/ccom/init.c
index 06f455772b0..32938dbc2c4 100644
--- a/usr.bin/pcc/cc/ccom/init.c
+++ b/usr.bin/pcc/cc/ccom/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.3 2007/09/22 14:36:18 otto Exp $ */
+/* $OpenBSD: init.c,v 1.4 2007/09/23 18:34:38 otto Exp $ */
/*
* Copyright (c) 2004, 2007 Anders Magnusson (ragge@ludd.ltu.se).
@@ -854,6 +854,8 @@ asginit(NODE *p)
/* HACKHACKHACK */
struct instk *is = pstk;
+ if (pstk == NULL)
+ stkpush();
while (ISSOU(pstk->in_t) || ISARY(pstk->in_t))
stkpush();
if (pstk->in_prev &&