https://bugs.freedesktop.org/show_bug.cgi?id=100878
Daniel Stone <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|SIGSEGV on wl_list_insert |SIGSEGV on desktop-shell
| |focus change
--- Comment #2 from Daniel Stone <[email protected]> ---
The clue, however, is in the names of the parameters to the functions. For
instance, you do:
struct wl_list list;
struct {
int something;
struct wl_list link;
} foo;
wl_list_init(&list);
wl_list_insert(&list, &foo->link);
wl_list_remove(&foo->link);
At this point, foo has been removed from list (making its link member
dangling), but the overall list itself is still valid. Trying to remove a list
from itself does not make any real sense; instead, you remove an element from
that list.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs