summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ps.c b/utils/ps.c
index 128c77b7..45216189 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -426,7 +426,7 @@ main(int argc, char *argv[])
const char *name = ps_tty_name (tty);
const char *short_name = ps_tty_short_name(tty);
- while (try = argz_next (tty_names, num_tty_names, try))
+ while ((try = argz_next (tty_names, num_tty_names, try)))
if ((name && strcmp (try, name) == 0)
|| (short_name && strcmp (try, short_name) == 0))
return TRUE;