Initialize count to 0 in wl_list_length().
authorKristian Høgsberg <krh@redhat.com>
Sun, 14 Dec 2008 20:52:34 +0000 (15:52 -0500)
committerKristian Høgsberg <krh@redhat.com>
Sun, 14 Dec 2008 20:52:34 +0000 (15:52 -0500)
Not sure how this ever really worked before...

wayland-util.c

index 1a154ac..610532f 100644 (file)
@@ -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;