From a6271469b969dd0722e9b914d7c03af8cd4f499d Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 11 Nov 1997 13:50:14 +0000 Subject: uninitialized variable --- sys/kern/kern_ktrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 2a34118a05e..a316905cf96 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_ktrace.c,v 1.6 1997/11/06 05:58:16 csapuntz Exp $ */ +/* $OpenBSD: kern_ktrace.c,v 1.7 1997/11/11 13:50:13 niklas Exp $ */ /* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */ /* @@ -272,7 +272,7 @@ sys_ktrace(curp, v, retval) syscallarg(int) pid; } */ *uap = v; register struct vnode *vp = NULL; - register struct proc *p; + register struct proc *p = curproc; /* XXX */ struct pgrp *pg; int facs = SCARG(uap, facs) & ~((unsigned) KTRFAC_ROOT); int ops = KTROP(SCARG(uap, ops)); -- cgit v1.2.3