screenshooter: Add a missing return; in an error path

This commit is contained in:
Jasper St. Pierre
2014-08-07 16:43:14 -04:00
committed by Jason Ekstrand
parent 666bc9234a
commit 886b0098c3
+1
View 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,