From: Kristian Høgsberg Date: Sun, 14 Dec 2008 20:52:34 +0000 (-0500) Subject: Initialize count to 0 in wl_list_length(). X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f16956c067e825109d1e2ce925fae3ba7040207;p=profile%2Fivi%2Fweston.git Initialize count to 0 in wl_list_length(). Not sure how this ever really worked before... --- 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;