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:
Marcelo Araujo
2016-04-19 00:40:43 +00:00
parent 172c3b0b5f
commit ec23a76360
+1 -1
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)