mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 17:26:21 +00:00
Stop buffer_remove_entry_by_id() once we found the entry
No need to continue to loop through the rest.
This commit is contained in:
@@ -116,6 +116,7 @@ buffer_remove_entry_by_id(ProfBuff buffer, const char *const id)
|
||||
if (entry->id && (g_strcmp0(entry->id, id) == 0)) {
|
||||
_free_entry(entry);
|
||||
buffer->entries = g_slist_delete_link(buffer->entries, entries);
|
||||
break;
|
||||
}
|
||||
entries = g_slist_next(entries);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user