aboutsummaryrefslogtreecommitdiff
path: root/libseat
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-31 02:26:47 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-31 14:09:59 +0200
commitbbfb770c73498413055c7af8d3e1b8db36560016 (patch)
tree8d7130502352a1dc523d4959f7945899491b9e40 /libseat
parentd75b617fafa41b83aab5943827224df8b7ff9e4a (diff)
linked_list: linked_list_take should concat lists
Diffstat (limited to 'libseat')
-rw-r--r--libseat/backend/seatd.c1
1 files changed, 1 insertions, 0 deletions
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;