Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/common better to print (null) than core-dump
details: https://anonhg.NetBSD.org/src/rev/3d358652c60f
branches: trunk
changeset: 779822:3d358652c60f
user: christos <christos%NetBSD.org@localhost>
date: Wed Jun 20 18:50:11 2012 +0000
description:
better to print (null) than core-dump
diffstat:
usr.bin/xlint/common/tyname.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 3e3b23535db5 -r 3d358652c60f usr.bin/xlint/common/tyname.c
--- a/usr.bin/xlint/common/tyname.c Wed Jun 20 17:55:06 2012 +0000
+++ b/usr.bin/xlint/common/tyname.c Wed Jun 20 18:50:11 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tyname.c,v 1.10 2008/09/26 23:51:04 matt Exp $ */
+/* $NetBSD: tyname.c,v 1.11 2012/06/20 18:50:11 christos Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tyname.c,v 1.10 2008/09/26 23:51:04 matt Exp $");
+__RCSID("$NetBSD: tyname.c,v 1.11 2012/06/20 18:50:11 christos Exp $");
#endif
#include <limits.h>
@@ -96,6 +96,8 @@
char lbuf[64];
char cv[20];
+ if (tp == NULL)
+ return "(null)";
if ((t = tp->t_tspec) == INT && tp->t_isenum)
t = ENUM;
Home |
Main Index |
Thread Index |
Old Index