screenshooter: Add a missing return; in an error path

dev
Jasper St. Pierre 10 years ago committed by Jason Ekstrand
parent 666bc9234a
commit 886b0098c3
  1. 1
      src/screenshooter.c

@ -265,6 +265,7 @@ bind_shooter(struct wl_client *client,
if (client != shooter->client) { if (client != shooter->client) {
wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT, wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,
"screenshooter failed: permission denied"); "screenshooter failed: permission denied");
return;
} }
wl_resource_set_implementation(resource, &screenshooter_implementation, wl_resource_set_implementation(resource, &screenshooter_implementation,

Loading…
Cancel
Save