screenshooter: Add a missing return; in an error path
This commit is contained in:
committed by
Jason Ekstrand
parent
666bc9234a
commit
886b0098c3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user