1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Don't crash if first line in window is just a newline

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@943 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-03 06:07:33 +00:00 committed by cras
parent 043d9b8079
commit d174cc6db0

View File

@ -472,6 +472,8 @@ static void sig_printtext_finished(WINDOW_REC *window)
GUI_WINDOW_REC *gui;
gui = WINDOW_GUI(window);
if (gui->cur_line == NULL)
return;
if (format->len > 0) {
/* save format of the line */