From: Johan Malm Date: Wed, 18 May 2022 19:53:46 +0000 (+0100) Subject: resistance.c: init flags in resistance_resize_apply() too X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=9df491c5442b8a1188a8543649ad86e4d1464e2b;p=proto%2Flabwc.git resistance.c: init flags in resistance_resize_apply() too --- diff --git a/src/resistance.c b/src/resistance.c index a1d2aba4..db19dbc6 100644 --- a/src/resistance.c +++ b/src/resistance.c @@ -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;