diff options
author | deraadt <deraadt@openbsd.org> | 2020-08-03 00:09:01 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2020-08-03 00:09:01 +0000 |
commit | e30a1d6dd5339d5e891ea059615207830954c502 (patch) | |
tree | 421e96cf8306c986e001c0054f249a61ec973ae7 /bin | |
parent | missing {} identified by clang10 (diff) | |
download | wireguard-openbsd-e30a1d6dd5339d5e891ea059615207830954c502.tar.xz wireguard-openbsd-e30a1d6dd5339d5e891ea059615207830954c502.zip |
clang10 identifies an argv[] comparison against '\0' instead of NULL,
it results in the same, but is incorrect.
ok millert
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 97774bb94b8..71d4a72a842 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.74 2019/06/23 17:18:50 deraadt Exp $ */ +/* $OpenBSD: print.c,v 1.75 2020/08/03 00:09:01 deraadt Exp $ */ /* $NetBSD: print.c,v 1.27 1995/09/29 21:58:12 cgd Exp $ */ /*- @@ -156,7 +156,7 @@ command(const struct kinfo_proc *kp, VARENT *ve) } } } - if (argv == NULL || argv[0] == '\0' || + if (argv == NULL || argv[0] == NULL || strcmp(cmdpart(argv[0]), kp->p_comm)) { if (wantspace) { putchar(' '); |