Fix a warning: compare u_long ps_strings to 0 instead of NULL.
This commit is contained in:
parent
97b7fb767e
commit
9ae4a75423
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user