From b5ad766209a28af44f7f78d3d77a18c0aacf22c8 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 23 Sep 2007 20:13:29 +0000 Subject: Avoid potential segfault when debugging --- usr.bin/pcc/cc/ccom/pftn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/pcc') 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 -- cgit v1.2.3