summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);