mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
wayland-server: Fix a uninitialized warning from clang
This warning is unnecessary, since the pointer in question is only used for pointer arithmetic, but setting it explicitly to NULL doesn't hurt.
This commit is contained in:
parent
10dcf86f7d
commit
cdea669858
1 changed files with 1 additions and 1 deletions
|
|
@ -501,7 +501,7 @@ wl_resource_get_link(struct wl_resource *resource)
|
|||
WL_EXPORT struct wl_resource *
|
||||
wl_resource_from_link(struct wl_list *link)
|
||||
{
|
||||
struct wl_resource *resource;
|
||||
struct wl_resource *resource = NULL;
|
||||
|
||||
return wl_container_of(link, resource, link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue