Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/systat avoid null pointer access on ":show".
details: https://anonhg.NetBSD.org/src/rev/b4638c9151ab
branches: trunk
changeset: 480144:b4638c9151ab
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Jan 05 11:48:21 2000 +0000
description:
avoid null pointer access on ":show".
diffstat:
usr.bin/systat/netcmds.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r abb6b6a458d2 -r b4638c9151ab usr.bin/systat/netcmds.c
--- a/usr.bin/systat/netcmds.c Wed Jan 05 11:32:43 2000 +0000
+++ b/usr.bin/systat/netcmds.c Wed Jan 05 11:48:21 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netcmds.c,v 1.12 2000/01/04 15:12:42 itojun Exp $ */
+/* $NetBSD: netcmds.c,v 1.13 2000/01/05 11:48:21 itojun Exp $ */
/*-
* Copyright (c) 1980, 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)netcmds.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: netcmds.c,v 1.12 2000/01/04 15:12:42 itojun Exp $");
+__RCSID("$NetBSD: netcmds.c,v 1.13 2000/01/05 11:48:21 itojun Exp $");
#endif /* not lint */
/*
@@ -111,7 +111,7 @@
char *args;
{
move(CMDLINE, 0); clrtoeol();
- if (*args == '\0') {
+ if (!args || *args == '\0') {
showprotos();
showhosts();
showports();
Home |
Main Index |
Thread Index |
Old Index