From 9ec72d760f6840fe718aa79b7946c3fd52cd90ed Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 7 Jul 1995 02:25:16 +0000 Subject: (ps_tty_short_name): Put extra parens around assignment inside if test. --- libps/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libps') 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 { -- cgit v1.2.3