projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d34735
)
slist: fix condition for detecting queued item.
author
Davin McCall
<davmac@davmac.org>
Sat, 17 Jun 2017 23:11:00 +0000
(
00:11
+0100)
committer
Davin McCall
<davmac@davmac.org>
Sat, 17 Jun 2017 23:11:00 +0000
(
00:11
+0100)
src/dinit-ll.h
patch
|
blob
|
history
diff --git
a/src/dinit-ll.h
b/src/dinit-ll.h
index 4e16d2874ef4baf72a1523b32edcc1dce7f52f4d..267cd512ec128782aa6f9e1cae6bdc62e0697731 100644
(file)
--- 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