_kvm_malloc allocates memory through calloc() which
returns zeroed memory, so don't redo the initialization.
This commit is contained in:
parent
4d4d2d367d
commit
0c0113fdef
@ -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)) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user