screenshooter: Add a missing return; in an error path
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 7 Aug 2014 20:43:14 +0000 (16:43 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Aug 2014 21:59:48 +0000 (14:59 -0700)
src/screenshooter.c

index 9ae0d29..4403933 100644 (file)
@@ -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,