From cdea6698582ffb874b7ece91ad057bc1ac5aa27b Mon Sep 17 00:00:00 2001 From: Aaron Faanes Date: Wed, 28 Aug 2013 17:43:34 -0500 Subject: [PATCH] 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. --- src/wayland-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index a1d69e5..d7c58b9 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -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); } -- 2.7.4