Fix a warning: compare u_long ps_strings to 0 instead of NULL.

This commit is contained in:
schweikh 2004-03-28 11:50:54 +00:00
parent 97b7fb767e
commit 9ae4a75423

View File

@ -810,7 +810,7 @@ kvm_doargv(kd, kp, nchr, info)
static u_long ps_strings;
size_t len;
if (ps_strings == NULL) {
if (ps_strings == 0) {
len = sizeof(ps_strings);
if (sysctlbyname("kern.ps_strings", &ps_strings, &len, NULL,
0) == -1)