summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-23 20:13:29 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-23 20:13:29 +0000
commitb5ad766209a28af44f7f78d3d77a18c0aacf22c8 (patch)
tree4943f196dfeae02e553f9537dc1b255bb2717e34 /usr.bin
parent568dbfd32f2254566124299a43b8c9a1c986a580 (diff)
Avoid potential segfault when debugging
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pcc/cc/ccom/pftn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/ccom/pftn.c b/usr.bin/pcc/cc/ccom/pftn.c
index 7d4c3a8169b..11de483c199 100644
--- a/usr.bin/pcc/cc/ccom/pftn.c
+++ b/usr.bin/pcc/cc/ccom/pftn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pftn.c,v 1.3 2007/09/16 18:52:52 otto Exp $ */
+/* $OpenBSD: pftn.c,v 1.4 2007/09/23 20:13:28 otto Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -2046,7 +2046,8 @@ doacall(NODE *f, NODE *a)
if (ddebug) {
printf("doacall.\n");
fwalk(f, eprint, 0);
- fwalk(a, eprint, 0);
+ if (a)
+ fwalk(a, eprint, 0);
}
#endif