Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ktruss avoid an uninitialised variable warning that ...
details: https://anonhg.NetBSD.org/src/rev/50f578337f78
branches: trunk
changeset: 766735:50f578337f78
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jul 01 02:34:50 2011 +0000
description:
avoid an uninitialised variable warning that shouldn't normally happen
in practise but isn't entirely impossible for the future.
diffstat:
usr.bin/ktruss/dump.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 441efb5f4cbd -r 50f578337f78 usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c Fri Jul 01 02:33:23 2011 +0000
+++ b/usr.bin/ktruss/dump.c Fri Jul 01 02:34:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dump.c,v 1.37 2011/03/06 17:08:42 bouyer Exp $ */
+/* $NetBSD: dump.c,v 1.38 2011/07/01 02:34:50 mrg Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: dump.c,v 1.37 2011/03/06 17:08:42 bouyer Exp $");
+__RCSID("$NetBSD: dump.c,v 1.38 2011/07/01 02:34:50 mrg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -349,6 +349,7 @@
static union timeholder prevtime;
union timeholder temp;
+ temp.tv.tv_sec = temp.tv.tv_usec = 0;
wprintf("%6d ", kth->ktr_pid);
if (kth->ktr_version > KTRFAC_VERSION(KTRFACv0))
wprintf("%6d ", kth->ktr_lid);
Home |
Main Index |
Thread Index |
Old Index