1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Use variable name in buffer_remove_entry()

We assign it just above.
This commit is contained in:
Michael Vetter 2024-06-19 15:27:51 +02:00
parent d341705a43
commit cee92b0a70

View File

@ -145,7 +145,7 @@ buffer_remove_entry(ProfBuff buffer, int entry)
GSList* node = g_slist_nth(buffer->entries, entry);
ProfBuffEntry* e = node->data;
buffer->lines -= e->_lines;
_free_entry(node->data);
_free_entry(e);
buffer->entries = g_slist_delete_link(buffer->entries, node);
}