aboutsummaryrefslogtreecommitdiff
path: root/bin/ps/keyword.c
diff options
context:
space:
mode:
authorGarance A Drosehn <gad@FreeBSD.org>2006-04-05 17:40:46 +0000
committerGarance A Drosehn <gad@FreeBSD.org>2006-04-05 17:40:46 +0000
commita9f48b449afcc7e895cf3fd9763de4b55340a535 (patch)
tree049ab626033cbb866ccd1665f68993f2149e96d0 /bin/ps/keyword.c
parent2a6d2e9c2db9599081934413c58e348d80de2daa (diff)
downloadsrc-a9f48b449afcc7e895cf3fd9763de4b55340a535.tar.gz
src-a9f48b449afcc7e895cf3fd9763de4b55340a535.zip
Notes
Diffstat (limited to 'bin/ps/keyword.c')
-rw-r--r--bin/ps/keyword.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 9ae82c3f3852..0c0f4c5535fa 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -302,6 +302,8 @@ findvar(char *p, int user, char **header)
hp = strchr(p, '=');
if (hp)
*hp++ = '\0';
+ else
+ hp = p;
key.name = p;
v = bsearch(&key, var, sizeof(var)/sizeof(VAR) - 1, sizeof(VAR), vcmp);