~sircmpwn/wio

1

[PATCH] Fix typo from ec6567e899a5 found by Clang

Jan Beich
Details
Message ID
<lfvy-b2hm-wny@FreeBSD.org>
DKIM signature
missing
Download raw message
Patch: +1 -1
../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
Details
Message ID
<BW84W3YIO2FC.2YOVRGV8PHS5U@koishi>
In-Reply-To
<lfvy-b2hm-wny@FreeBSD.org> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git.sr.ht:~sircmpwn/wio
   ec6567e..0051f8e  master -> master