summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-23 18:34:39 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-23 18:34:39 +0000
commitf27dc50bb8636b267da97cfc9a1d7f105920b9be (patch)
treeb7b4b345a4d53b595e7286f27784bed2b289b98e /usr.bin
parentaa9878382722119e7d7d31806490ffad7fadf4d4 (diff)
Pull from ragge's repo:
Fix for a bug found by Otto Muelbeek. I think ragge found at least 4 different ways to misspell my name ;-)
Diffstat (limited to 'usr.bin')
-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 &&