diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-05 20:15:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-05 20:15:57 +0000 |
commit | 4ca718495535e57b83bfdc25cf9c10f0b783bfe7 (patch) | |
tree | cc301c3aa7b6b97b3e62961d08066e8e40d7c259 /src | |
parent | d3dc9a1307adc40425bf162f1f867a39e535f501 (diff) | |
download | irssi-4ca718495535e57b83bfdc25cf9c10f0b783bfe7.zip |
Fixed a crash
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@198 dbcabf3a-b0e7-0310-adc4-f8d773084564
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; } |