diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index 11fe5b2f..f3fc6f56 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -350,7 +350,8 @@ static void sig_window_item_remove(WINDOW_REC *window, WI_ITEM_REC *item) for (tmp = logs; tmp != NULL; tmp = tmp->next) { LOG_REC *rec = tmp->data; - if (rec->temp && g_strcasecmp(rec->items[0], item->name) == 0) { + if (rec->temp && rec->items != NULL && + g_strcasecmp(rec->items[0], item->name) == 0) { log_close(rec); break; } |