summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-09-23 18:34:38 +0000
committerotto <otto@openbsd.org>2007-09-23 18:34:38 +0000
commitb81eeda7194ca979e755324eab34471acf33f6dc (patch)
treefe80e879a8ebbcd3a728a4128e0becbcb3aef14f
parentdon't even attempt to reuse the same temp file name. (diff)
downloadwireguard-openbsd-b81eeda7194ca979e755324eab34471acf33f6dc.tar.xz
wireguard-openbsd-b81eeda7194ca979e755324eab34471acf33f6dc.zip
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 ;-)
-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 &&