Not sure how this ever really worked before...
@ -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;