From 3f16956c067e825109d1e2ce925fae3ba7040207 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Sun, 14 Dec 2008 15:52:34 -0500 Subject: [PATCH] Initialize count to 0 in wl_list_length(). Not sure how this ever really worked before... --- wayland-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wayland-util.c b/wayland-util.c index 1a154ac..610532f 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; -- 2.7.4