mirror of
https://github.com/tmux/tmux.git
synced 2025-09-08 18:49:53 +00:00
Handle empty or unset TERM correctly; also fix a fatal() message while here.
This commit is contained in:
@ -211,7 +211,9 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c)
|
||||
c->tty.term_flags |= TERM_88COLOURS;
|
||||
if (data.flags & IDENTIFY_HASDEFAULTS)
|
||||
c->tty.term_flags |= TERM_HASDEFAULTS;
|
||||
xfree(term);
|
||||
|
||||
if (term != NULL)
|
||||
xfree(term);
|
||||
|
||||
c->flags |= CLIENT_TERMINAL;
|
||||
|
||||
|
Reference in New Issue
Block a user