From 637a3c76c1a8c777f4918fe50cbc4d04817f08dc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Nov 2001 12:38:03 +0000 Subject: [PATCH] data_is_empty() might have crashed when it was called at the startup when there was no active window. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2127 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/themes.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index 6b88874e..8aee0d95 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -264,8 +264,10 @@ static int data_is_empty(const char **data) /* variable - check if it's empty */ p++; - ret = parse_special((char **) &p, active_win->active_server, - active_win->active, arglist, &free_ret, NULL, 0); + ret = parse_special((char **) &p, + active_win == NULL ? NULL : active_win->active_server, + active_win == NULL ? NULL : active_win->active, + arglist, &free_ret, NULL, 0); p++; while (*p == ' ') p++;