mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
Initialize count to 0 in wl_list_length().
Not sure how this ever really worked before...
This commit is contained in:
parent
64949978f4
commit
3f16956c06
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ wl_list_length(struct wl_list *list)
|
||||||
struct wl_list *e;
|
struct wl_list *e;
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
|
count = 0;
|
||||||
e = list->next;
|
e = list->next;
|
||||||
while (e != list) {
|
while (e != list) {
|
||||||
e = e->next;
|
e = e->next;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue