1
0
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:
Jochen Eisinger 2005-11-15 23:38:01 +00:00 committed by c0ffee
parent 2779edc4f9
commit f9345a7d3c

View File

@ -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