1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Fixed a crash

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@198 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-05 20:15:57 +00:00 committed by cras
parent d3dc9a1307
commit 4ca7184955

View File

@ -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;
}