1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

potential crash fix..

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1451 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-04-20 17:35:29 +00:00 committed by cras
parent 7acb8fa027
commit cb4ce9f1b2

View File

@ -845,7 +845,8 @@ static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
if (rec.remove_list != NULL) {
GList *pos = g_list_find(view->buffer->lines, line);
newline = pos->prev == NULL ? NULL : pos->next->data;
newline = pos == NULL || pos->prev == NULL ? NULL :
pos->next->data;
for (tmp = rec.remove_list; tmp != NULL; tmp = tmp->next) {
g_hash_table_remove(view->bookmarks, tmp->data);
if (newline != NULL) {