1
0
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:
Garance A Drosehn 2004-03-29 01:18:13 +00:00
parent a55624165f
commit 87e47750f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127544

View File

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