mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-23 02:57:33 +00:00
Handle empty or unset TERM correctly; also fix a fatal() message while here.
This commit is contained in:
parent
9ced016cbc
commit
474fdebb7a
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue