From bbfb770c73498413055c7af8d3e1b8db36560016 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 31 Aug 2020 02:26:47 +0200 Subject: linked_list: linked_list_take should concat lists --- libseat/backend/seatd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libseat') diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 46e354d..400b357 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -205,6 +205,7 @@ static int queue_event(struct backend_seatd *backend, int opcode) { static void execute_events(struct backend_seatd *backend) { struct linked_list list; + linked_list_init(&list); linked_list_take(&list, &backend->pending_events); while (!linked_list_empty(&list)) { struct pending_event *ev = (struct pending_event *)list.next; -- cgit v1.2.3