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:
araujo 2016-04-19 00:40:43 +00:00
parent 2613322bcf
commit de70093c62

View File

@ -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)