summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-07 02:25:16 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-07 02:25:16 +0000
commit9ec72d760f6840fe718aa79b7946c3fd52cd90ed (patch)
tree92bd68dcdb873dadbef9de67495f957966734700 /libps
parent3efc309a18a5b7ba32157da2e8fb005fafbbd5d5 (diff)
(ps_tty_short_name): Put extra parens around assignment inside if
test.
Diffstat (limited to 'libps')
-rw-r--r--libps/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/tty.c b/libps/tty.c
index 53dfcc8b..d668827f 100644
--- a/libps/tty.c
+++ b/libps/tty.c
@@ -130,7 +130,7 @@ ps_tty_short_name(ps_tty_t tty)
{
if (name[pfx_len] == '\0')
tty->short_name = abbrev->subst;
- else if (subst[0] = '\0')
+ else if ((subst[0] = '\0'))
tty->short_name = name + pfx_len;
else
{