mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Since "kp" is a pointer, I should be comparing against NULL not 0.
Noticed by: bde
This commit is contained in:
parent
a55624165f
commit
87e47750f2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127544
@ -507,7 +507,7 @@ main(int argc, char *argv[])
|
||||
*/
|
||||
nentries = -1;
|
||||
kp = kvm_getprocs(kd, what, flag, &nentries);
|
||||
if ((kp == 0 && nentries > 0) || (kp != 0 && nentries < 0))
|
||||
if ((kp == NULL && nentries > 0) || (kp != NULL && nentries < 0))
|
||||
errx(1, "%s", kvm_geterr(kd));
|
||||
nkept = 0;
|
||||
if (nentries > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user