diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-09 16:51:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-09 16:51:08 +0000 |
commit | fdf789d056ee928129fec0d9e5ffa85592956e24 (patch) | |
tree | dbfcad6d4e50c8fdf10ca67598a55246fd9767c4 | |
parent | 00777861a13574bd8ed58a832b8b3bf48eacf060 (diff) |
Initialize procbase2 to 0 in _kvm_open(); Dan Harnett
-rw-r--r-- | lib/libkvm/kvm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index 74a93ba685d..bfeb61cb8e8 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.34 2003/06/02 20:18:40 millert Exp $ */ +/* $OpenBSD: kvm.c,v 1.35 2004/01/09 16:51:07 millert Exp $ */ /* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94"; #else -static char *rcsid = "$OpenBSD: kvm.c,v 1.34 2003/06/02 20:18:40 millert Exp $"; +static char *rcsid = "$OpenBSD: kvm.c,v 1.35 2004/01/09 16:51:07 millert Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -190,6 +190,7 @@ _kvm_open(kd, uf, mf, sf, flag, errout) kd->nlfd = -1; kd->alive = 0; kd->procbase = 0; + kd->procbase2 = 0; kd->nbpg = getpagesize(); kd->swapspc = 0; kd->argspc = 0; |