diff --git a/wayland-util.c b/wayland-util.c index 1a154ac9..610532f2 100644 --- a/wayland-util.c +++ b/wayland-util.c @@ -121,6 +121,7 @@ wl_list_length(struct wl_list *list) struct wl_list *e; int count; + count = 0; e = list->next; while (e != list) { e = e->next;