mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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
172c3b0b5f
commit
ec23a76360
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298233
@ -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…
Reference in New Issue
Block a user