mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
d3dc9a1307
commit
4ca7184955
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user