Commit 2b268061 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

tdestroy: use assert()

parent 861c0e2c
......@@ -93,9 +93,11 @@ void vlc_tdestroy (void *root, void (*freenode) (void *))
vlc_mutex_lock (&smallest.lock);
for (size_t i = 0; i < count; i++)
{
smallest.node = tab[i];
if (tdelete (smallest.node, &root, cmp_smallest) == NULL)
abort ();
void *node = tab[i];
smallest.node = node;
node = tdelete (node, &root, cmp_smallest);
assert (node != NULL);
}
vlc_mutex_unlock (&smallest.lock);
assert (root == NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment