From 300538f6f75baeb53910c26a688c79d346a5e351 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 8 Jul 1995 17:40:15 +0000 Subject: (ps_tty_short_name): That assignment around which extra parents were put was actually supposed to be a test! Make it so... --- 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 d668827f..f7602a96 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 || subst[0] == '\0') tty->short_name = name + pfx_len; else { -- cgit v1.2.3