From 8667e77b77a112892fe2ac96c8d98ad08d525580 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 18 May 2012 14:13:03 +0100 Subject: [PATCH] compositor: Silence compiler warning by initializing resource to NULL Although resource will be valid when it is used since the entered and left masks are subsets of the different mask it would be nice not to have a spurious compiler warning. --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 8fd4aa6a2..ba201afe7 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1191,7 +1191,7 @@ weston_surface_update_output_mask(struct weston_surface *es, uint32_t mask) uint32_t entered = mask & different; uint32_t left = es->output_mask & different; struct weston_output *output; - struct wl_resource *resource; + struct wl_resource *resource = NULL; struct wl_client *client = es->surface.resource.client; if (es->surface.resource.client == NULL)