It doesnt add an element which is adressed as other`s adress.
---
 src/wayland-util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wayland-util.c b/src/wayland-util.c
index cab7fc5..50c52b2 100644
--- a/src/wayland-util.c
+++ b/src/wayland-util.c
@@ -87,8 +87,8 @@ wl_list_insert_list(struct wl_list *list, struct wl_list 
*other)
                return;
 
        other->next->prev = list;
-       other->prev->next = list->next;
-       list->next->prev = other->prev;
+       other->next = list->next;
+       list->next->prev = other;
        list->next = other->next;
 }
 
-- 
2.12.1

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to