[PATCH wayland] wl-utils: wl_list_insert_list

Oktay Sarimehmet oktay4st at gmail.com
Fri Mar 31 00:01:18 UTC 2017


It doesnt add an element which is adressed as other`s adress.

Signed-off-by: Oktay Sarimehmet <oktay4st at gmail.com>
---
 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



More information about the wayland-devel mailing list