Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ps appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/cff9469fc6bd
branches: trunk
changeset: 581422:cff9469fc6bd
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 15:30:33 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
bin/ps/ps.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 39f1f241a52b -r cff9469fc6bd bin/ps/ps.c
--- a/bin/ps/ps.c Wed Jun 01 15:29:41 2005 +0000
+++ b/bin/ps/ps.c Wed Jun 01 15:30:33 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ps.c,v 1.57 2005/02/11 18:26:18 christos Exp $ */
+/* $NetBSD: ps.c,v 1.58 2005/06/01 15:30:33 lukem Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
#if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: ps.c,v 1.57 2005/02/11 18:26:18 christos Exp $");
+__RCSID("$NetBSD: ps.c,v 1.58 2005/06/01 15:30:33 lukem Exp $");
#endif
#endif /* not lint */
@@ -263,6 +263,7 @@
char *ttypath, pathbuf[MAXPATHLEN];
flag = 0;
+ ttypath = NULL;
if (strcmp(ttname, "?") == 0)
flag = KERN_PROC_TTY_NODEV;
else if (strcmp(ttname, "-") == 0)
Home |
Main Index |
Thread Index |
Old Index