diff options
-rw-r--r-- | lib/libkvm/kvm_amd64.c | 1 | ||||
-rw-r--r-- | lib/libkvm/kvm_i386.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_amd64.c b/lib/libkvm/kvm_amd64.c index 18f9f4d..a47a385 100644 --- a/lib/libkvm/kvm_amd64.c +++ b/lib/libkvm/kvm_amd64.c @@ -102,6 +102,7 @@ _kvm_initvtop(kvm_t *kd) { _kvm_err(kd, kd->program, "bad namelist"); return (-1); } + vm->PTD = 0 vm->IdlePTD = 0; if (KREAD(kd, (u_long)nlist[0].n_value, &vm->IdlePTD)) { _kvm_err(kd, kd->program, "cannot read IdlePTD"); diff --git a/lib/libkvm/kvm_i386.c b/lib/libkvm/kvm_i386.c index 18f9f4d..a47a385 100644 --- a/lib/libkvm/kvm_i386.c +++ b/lib/libkvm/kvm_i386.c @@ -102,6 +102,7 @@ _kvm_initvtop(kvm_t *kd) { _kvm_err(kd, kd->program, "bad namelist"); return (-1); } + vm->PTD = 0 vm->IdlePTD = 0; if (KREAD(kd, (u_long)nlist[0].n_value, &vm->IdlePTD)) { _kvm_err(kd, kd->program, "cannot read IdlePTD"); |