From 0051f8e094bac6f0cdcae832ed5d44b96b1a968f Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 12 Aug 2019 21:36:05 +0200 Subject: [PATCH] Fix typo from ec6567e899a5 found by Clang ../view.c:136:16: error: expression which evaluates to zero treated as a null pointer constant of type 'int *' [-Werror,-Wnon-literal-null-conversion] view_area = VIEW_AREA_SURFACE; ^~~~~~~~~~~~~~~~~ --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.c b/view.c index 1273b2c..37ad734 100644 --- a/view.c +++ b/view.c @@ -133,7 +133,7 @@ struct wio_view *wio_view_at(struct wio_server *server, double lx, double ly, wl_list_for_each(view, &server->views, link) { // Surface if (view_at(view, lx, ly, surface, sx, sy)) { - view_area = VIEW_AREA_SURFACE; + *view_area = VIEW_AREA_SURFACE; return view; } // Top border -- 2.45.2