summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Faanes <dafrito@gmail.com>2013-08-28 17:43:34 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-09-11 10:42:37 -0700
commitcdea6698582ffb874b7ece91ad057bc1ac5aa27b (patch)
treeeee79a1ffe52eb382caceda957dae6ff51b45f49 /src
parent10dcf86f7d5f61a683b60bf4e2cbad5268b9b498 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/wayland-server.c2
1 files changed, 1 insertions, 1 deletions
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);
}