Fix problem where with PicoBSD the shell coredumps if it does not find an
entry for its terminal type in /etc/termcap. Submitted by: bde
This commit is contained in:
parent
f433d6afed
commit
e95d27b9ae
@ -338,9 +338,9 @@ term_init(EditLine *el)
|
|||||||
return (-1);
|
return (-1);
|
||||||
(void) memset(el->el_term.t_val, 0, T_val * sizeof(int));
|
(void) memset(el->el_term.t_val, 0, T_val * sizeof(int));
|
||||||
term_outfile = el->el_outfile;
|
term_outfile = el->el_outfile;
|
||||||
|
term_init_arrow(el);
|
||||||
if (term_set(el, NULL) == -1)
|
if (term_set(el, NULL) == -1)
|
||||||
return (-1);
|
return (-1);
|
||||||
term_init_arrow(el);
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
/* term_end():
|
/* term_end():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user