desktop-shell: Add a missing return; in an error path
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 7 Aug 2014 20:43:13 +0000 (16:43 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Aug 2014 21:59:48 +0000 (14:59 -0700)
desktop-shell/shell.c

index 250cf88..7370972 100644 (file)
@@ -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);