ssh: fix nil dereference when TERM isnt set and -r is requested
This commit is contained in:
parent
ec5227f7f5
commit
2d6f9f4700
1 changed files with 3 additions and 1 deletions
|
@ -1151,7 +1151,9 @@ main(int argc, char *argv[])
|
||||||
fmtinstall('k', kfmt);
|
fmtinstall('k', kfmt);
|
||||||
|
|
||||||
tty.term = getenv("TERM");
|
tty.term = getenv("TERM");
|
||||||
raw = tty.term != nil && *tty.term != 0;
|
if(tty.term == nil)
|
||||||
|
tty.term = "";
|
||||||
|
raw = *tty.term != 0;
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'd':
|
case 'd':
|
||||||
|
|
Loading…
Reference in a new issue