66b7cb23c2
When malloc fails. don't try to memset NULL pointer, it cause core dump Replace malloc+memset with calloc, theoretically it can do some optimization of zeroing process internally Improve error diagnostic |
||
---|---|---|
.. | ||
kvm_amd64.c | ||
kvm_file.c | ||
kvm_geterr.3 | ||
kvm_getfiles.3 | ||
kvm_getloadavg.3 | ||
kvm_getloadavg.c | ||
kvm_getprocs.3 | ||
kvm_hp300.c | ||
kvm_i386.c | ||
kvm_mips.c | ||
kvm_nlist.3 | ||
kvm_open.3 | ||
kvm_private.h | ||
kvm_proc.c | ||
kvm_read.3 | ||
kvm_sparc.c | ||
kvm.3 | ||
kvm.c | ||
kvm.h | ||
Makefile |