after this patch, the issue can not be reproduced:
commit 24249e091ab3a935f6ea87b7f7355c689c045a80 (HEAD -> refs/heads/master)
Author: Luiz Augusto von Dentz <email address hidden>
Date: Mon Apr 9 14:48:41 2018 +0300
shared/queue: Handle NULL as direct match on queue_remove_if
As with queue_find when function is set to NULL use direct_match as
callback.
after this patch, the issue can not be reproduced: 5f6ea87b7f7355c 689c045a80 (HEAD -> refs/heads/master)
commit 24249e091ab3a93
Author: Luiz Augusto von Dentz <email address hidden>
Date: Mon Apr 9 14:48:41 2018 +0300
shared/queue: Handle NULL as direct match on queue_remove_if
As with queue_find when function is set to NULL use direct_match as
callback.
diff --git a/src/shared/ queue.c b/src/shared/ queue.c .60df11143 100644 queue.c queue.c remove_ if(struct queue *queue, queue_match_func_t function,
index 5ddb8326d.
--- a/src/shared/
+++ b/src/shared/
@@ -280,9 +280,12 @@ void *queue_
{
struct queue_entry *entry, *prev = NULL;
- if (!queue || !function)
return NULL;
+ if (!queue)
+ if (!function)
+ function = direct_match;
+
entry = queue->head;