]> git.mdlowis.com Git - proto/labwc.git/commitdiff
resistance.c: init flags in resistance_resize_apply() too
authorJohan Malm <jgm323@gmail.com>
Wed, 18 May 2022 19:53:46 +0000 (20:53 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 18 May 2022 19:53:46 +0000 (20:53 +0100)
src/resistance.c

index a1d2aba48a27065b9f0abf63de3ea7aa44d62a06..db19dbc699e1df65ffb70d520d4580ab7b9fb88e 100644 (file)
@@ -111,7 +111,7 @@ resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo)
        struct edges view_edges; /* The edges of the current view */
        struct edges target_edges; /* The desired edges */
        struct edges other_edges; /* The edges of the monitor/other view */
-       struct edges flags; /* To be set in is_within_resistance_range() */
+       struct edges flags = { 0 };
 
        view_edges.left = view->x - border.left;
        view_edges.top = view->y - border.top;