summaryrefslogtreecommitdiff
path: root/bin/ksh/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/trap.c')
-rw-r--r--bin/ksh/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/trap.c b/bin/ksh/trap.c
index f1efe6451d9..9b9076caf2b 100644
--- a/bin/ksh/trap.c
+++ b/bin/ksh/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.6 1997/09/01 18:30:13 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.7 1998/10/29 04:09:21 millert Exp $ */
/*
* signal handling
@@ -32,7 +32,7 @@ inittraps()
/* Use system description, if available, for unknown signals... */
for (i = 0; i < NSIG; i++)
- if (!sigtraps[i].name && sys_siglist[i][0])
+ if (!sigtraps[i].name && sys_siglist[i] && sys_siglist[i][0])
sigtraps[i].mess = sys_siglist[i];
#endif /* HAVE_SYS_SIGLIST */