mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fixed return code of term_init (resulted in segfault with invalid TERM and
termcap) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4076 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2779edc4f9
commit
f9345a7d3c
@ -530,7 +530,7 @@ static int term_setup(TERM_REC *term)
|
|||||||
if (tgetent(term->buffer1, term_env) < 1)
|
if (tgetent(term->buffer1, term_env) < 1)
|
||||||
{
|
{
|
||||||
fprintf(term->out, "Termcap not found for TERM=%s\n", term_env);
|
fprintf(term->out, "Termcap not found for TERM=%s\n", term_env);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user