diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-08-07 16:43:14 -0400 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2014-08-08 14:59:48 -0700 |
commit | 886b0098c3bc856dc7c945a3f424e8b64cbc1a7c (patch) | |
tree | 7a2b33624da808fee440045ec688f2ad61602ac1 /src | |
parent | 666bc9234a4828da3159dca1743db1c4083a396c (diff) | |
download | weston-886b0098c3bc856dc7c945a3f424e8b64cbc1a7c.tar.gz |
screenshooter: Add a missing return; in an error path
Diffstat (limited to 'src')
-rw-r--r-- | src/screenshooter.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |