_kvm_malloc allocates memory through calloc() which

returns zeroed memory, so don't redo the initialization.
This commit is contained in:
delphij 2008-10-17 20:09:00 +00:00
parent 4d4d2d367d
commit 0c0113fdef
2 changed files with 0 additions and 2 deletions

View File

@ -146,7 +146,6 @@ _kvm_minidump_initvtop(kvm_t *kd)
return (-1);
}
kd->vmst = vmst;
bzero(vmst, sizeof(*vmst));
vmst->minidump = 1;
if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
sizeof(vmst->hdr)) {

View File

@ -148,7 +148,6 @@ _kvm_minidump_initvtop(kvm_t *kd)
return (-1);
}
kd->vmst = vmst;
bzero(vmst, sizeof(*vmst));
vmst->minidump = 1;
if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
sizeof(vmst->hdr)) {