mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Fix some warnings from clang-tidy
Notably this fixes a possible null pointer dereference in warp_cursor() when output_nearest_to_cursor() returns null.
This commit is contained in:
parent
b3b6715cdf
commit
bdaf85eda1
3 changed files with 6 additions and 9 deletions
|
|
@ -1054,9 +1054,6 @@ static void
|
|||
handle_xdg_toplevel_icon_set_icon(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct wlr_xdg_toplevel_icon_manager_v1_set_icon_event *event = data;
|
||||
|
||||
struct server *server =
|
||||
wl_container_of(listener, server, xdg_toplevel_icon_set_icon);
|
||||
struct wlr_xdg_surface *xdg_surface = event->toplevel->base;
|
||||
struct view *view = xdg_surface->data;
|
||||
assert(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue