[PATCH weston 3/4] desktop-shell: Add a missing return; in an error path

Jasper St. Pierre jstpierre at mecheye.net
Thu Aug 7 13:43:13 PDT 2014


---
 desktop-shell/shell.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 250cf88..7370972 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -3741,6 +3741,7 @@ xdg_get_xdg_popup(struct wl_client *client,
 		wl_resource_post_error(surface_resource,
 				       WL_DISPLAY_ERROR_INVALID_OBJECT,
 				       "xdg_shell::get_xdg_popup requires a parent shell surface");
+		return;
 	}
 
 	parent = wl_resource_get_user_data(parent_resource);
-- 
2.0.4



More information about the wayland-devel mailing list