commit 0051f8e094bac6f0cdcae832ed5d44b96b1a968f
parent ec6567e899a5bbb8e6fe59afd9d62c1892ad894b
Author: Jan Beich <jbeich@FreeBSD.org>
Date: Mon, 12 Aug 2019 21:36:05 +0200
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;
^~~~~~~~~~~~~~~~~
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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