resistance.c: init flags in resistance_resize_apply() too

This commit is contained in:
Johan Malm 2022-05-18 20:53:46 +01:00
parent 87a64b64fa
commit 9df491c544

View 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;