Use NULL instead of 0 for pointers.
kvm_open(3) will return NULL when it cannot access kernel virtual memory. MFC after: 2 weeks.
This commit is contained in:
parent
2613322bcf
commit
de70093c62
@ -451,7 +451,7 @@ main(int argc, char *argv[])
|
||||
xkeep = xkeep_implied;
|
||||
|
||||
kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
||||
if (kd == 0)
|
||||
if (kd == NULL)
|
||||
xo_errx(1, "%s", errbuf);
|
||||
|
||||
if (!_fmt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user