projects
/
profile
/
ivi
/
wayland.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: clear pointers on wl_list_remove()
[profile/ivi/wayland.git]
/
src
/
wayland-util.c
diff --git
a/src/wayland-util.c
b/src/wayland-util.c
index
647b861
..
06bd245
100644
(file)
--- a/
src/wayland-util.c
+++ b/
src/wayland-util.c
@@
-49,6
+49,8
@@
wl_list_remove(struct wl_list *elm)
{
elm->prev->next = elm->next;
elm->next->prev = elm->prev;
+ elm->next = NULL;
+ elm->prev = NULL;
}
WL_EXPORT int