diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-03 06:07:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-03 06:07:33 +0000 |
commit | d174cc6db0f8845ef6ad6105175ec47253b5332a (patch) | |
tree | fad1b6ebfbb520b481a9c829db2dbe755c733c2c /src | |
parent | 043d9b8079d622862f5b967a7a6392e64fa3fa51 (diff) | |
download | irssi-d174cc6db0f8845ef6ad6105175ec47253b5332a.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-printtext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index 2b346e2c..a3d101d9 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -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 */ |