From f27dc50bb8636b267da97cfc9a1d7f105920b9be Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 23 Sep 2007 18:34:39 +0000 Subject: 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 ;-) --- usr.bin/pcc/cc/ccom/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/pcc') 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 && -- cgit v1.2.3