From f68b45c3214e3b0a1a41b711a1e0eae308207e20 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 23 Feb 2009 01:41:15 +0000 Subject: matthew haub pointed out that pid may be used uninitialized in some contexts ok deraadt --- usr.bin/ktrace/ktrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c index 78d5d84cdde..8585240b597 100644 --- a/usr.bin/ktrace/ktrace.c +++ b/usr.bin/ktrace/ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ktrace.c,v 1.20 2007/03/03 23:46:55 jmc Exp $ */ +/* $OpenBSD: ktrace.c,v 1.21 2009/02/23 01:41:14 tedu Exp $ */ /* $NetBSD: ktrace.c,v 1.4 1995/08/31 23:01:44 jtc Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: ktrace.c,v 1.20 2007/03/03 23:46:55 jmc Exp $"; +static char *rcsid = "$OpenBSD: ktrace.c,v 1.21 2009/02/23 01:41:14 tedu Exp $"; #endif /* not lint */ #include @@ -75,7 +75,7 @@ main(int argc, char *argv[]) struct stat sb; clear = NOTSET; - append = ops = pidset = inherit = 0; + append = ops = pidset = inherit = pid = 0; trpoints = DEF_POINTS; tracefile = DEF_TRACEFILE; while ((ch = getopt(argc,argv,"aCcdf:g:ip:t:")) != -1) -- cgit v1.2.3