mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix a warning: compare u_long ps_strings to 0 instead of NULL.
This commit is contained in:
parent
186c0bc04b
commit
5aaa432dcc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127518
@ -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