diff options
author | Miles Bader <miles@gnu.org> | 1995-07-08 17:40:15 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-08 17:40:15 +0000 |
commit | 300538f6f75baeb53910c26a688c79d346a5e351 (patch) | |
tree | a15ae9426c132b8915f4be7c27e5bb2cd402d2c9 /libps/tty.c | |
parent | a4d9ef94934c54d4e9dec8b184debe445776ae12 (diff) |
(ps_tty_short_name): That assignment around which extra parents were put was
actually supposed to be a test! Make it so...
Diffstat (limited to 'libps/tty.c')
-rw-r--r-- | libps/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |