summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-18 07:47:27 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-18 07:47:27 +0000
commit77b25c1ac7d6c3b735222ebf0ed27c259c8b5745 (patch)
tree18161072fa03676bcbd4e7b8b7b11d975cbe03bd /src/fe-text
parent8936da1f6dd69a2358d7ac88a500f74827dcc4f5 (diff)
downloadirssi-77b25c1ac7d6c3b735222ebf0ed27c259c8b5745.zip
sig_gui_print_text: don't crash if dest is NULL.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2697 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-printtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c
index 8509213e..f733a660 100644
--- a/src/fe-text/gui-printtext.c
+++ b/src/fe-text/gui-printtext.c
@@ -259,7 +259,7 @@ static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
return;
}
- lineinfo.level = GPOINTER_TO_INT(dest->level);
+ lineinfo.level = dest == NULL ? 0 : GPOINTER_TO_INT(dest->level);
lineinfo.time = time(NULL);
gui = WINDOW_GUI(window);