diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-12-14 15:52:34 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-12-14 15:52:34 -0500 |
commit | 3f16956c067e825109d1e2ce925fae3ba7040207 (patch) | |
tree | cef220e8c26d6e2970a0a4657d9e201762ebe20f /wayland-util.c | |
parent | 64949978f47607ea356b4c4e6c7a3379f1266ed7 (diff) |
Initialize count to 0 in wl_list_length().
Not sure how this ever really worked before...
Diffstat (limited to 'wayland-util.c')
-rw-r--r-- | wayland-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |