From 886b0098c3bc856dc7c945a3f424e8b64cbc1a7c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 7 Aug 2014 16:43:14 -0400 Subject: [PATCH] screenshooter: Add a missing return; in an error path --- src/screenshooter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screenshooter.c b/src/screenshooter.c index 9ae0d29c..44039332 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c @@ -265,6 +265,7 @@ bind_shooter(struct wl_client *client, if (client != shooter->client) { wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT, "screenshooter failed: permission denied"); + return; } wl_resource_set_implementation(resource, &screenshooter_implementation,