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:
Aaron Faanes 2013-08-28 17:43:34 -05:00 committed by Kristian Høgsberg
parent 10dcf86f7d
commit cdea669858

View file

@ -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);
}