1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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

This commit is contained in:
Jens Schweikhardt 2004-03-28 11:50:54 +00:00
parent 186c0bc04b
commit 5aaa432dcc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127518

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)