From 77b25c1ac7d6c3b735222ebf0ed27c259c8b5745 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 18 Apr 2002 07:47:27 +0000 Subject: 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 --- src/fe-text/gui-printtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3