From: Davin McCall Date: Sat, 17 Jun 2017 23:11:00 +0000 (+0100) Subject: slist: fix condition for detecting queued item. X-Git-Tag: v0.06~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2ff48085a9d59f2cd5eefbb507316462e221981c;p=oweals%2Fdinit.git slist: fix condition for detecting queued item. --- diff --git a/src/dinit-ll.h b/src/dinit-ll.h index 4e16d28..267cd51 100644 --- a/src/dinit-ll.h +++ b/src/dinit-ll.h @@ -118,7 +118,7 @@ class slist bool is_queued(T *e) noexcept { auto &node = E(e); - return node.next != nullptr && first != e; + return node.next != nullptr || first == e; } void insert(T *e) noexcept