diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-24 04:09:40 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-24 04:09:40 +0000 |
commit | 4096d0365c682750bd4db5b8596a600185c38d1d (patch) | |
tree | c4793f36f6bf8948a06a5078d639b8db6924a937 | |
parent | 92eb7a3842d4c06486bf1978d1613a5b6728be99 (diff) |
Initialize p to NULL in lookup.
How this could have ever worked without this is beyond me.
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index 5e24637a1df..2660d236fbc 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vnops.c,v 1.16 2001/04/09 07:14:23 tholo Exp $ */ +/* $OpenBSD: procfs_vnops.c,v 1.17 2001/05/24 04:09:39 art Exp $ */ /* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */ /* @@ -755,7 +755,7 @@ procfs_lookup(v) struct vnode *fvp; pid_t pid; struct pfsnode *pfs; - struct proc *p; + struct proc *p = NULL; int i, error, iscurproc = 0, isself = 0; *vpp = NULL; |