From d6150b6bb05ff9f59c0162fc2bab1709545fae7f Mon Sep 17 00:00:00 2001 From: llyyr Date: Tue, 20 Feb 2024 20:44:56 +0530 Subject: input/text_input: parent wlr_box may be uninitialized --- sway/input/text_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/input/text_input.c b/sway/input/text_input.c index d80e34ac..ad760a6f 100644 --- a/sway/input/text_input.c +++ b/sway/input/text_input.c @@ -300,7 +300,7 @@ static void input_popup_update(struct sway_input_popup *popup) { struct wlr_box cursor_area = text_input->input->current.cursor_rectangle; struct wlr_box output_box; - struct wlr_box parent; + struct wlr_box parent = {0}; struct wlr_layer_surface_v1 *layer_surface = wlr_layer_surface_v1_try_from_wlr_surface(focused_surface); struct wlr_scene_tree *relative_parent; -- cgit v1.2.3