From 9b9967756245d0bf5aa42a096ae76fa1f2f8c922 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Fri, 14 May 2021 15:43:56 +0000 Subject: [PATCH] Assign to variables before they are used by wlroots --- kiwmi/desktop/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwmi/desktop/output.c b/kiwmi/desktop/output.c index 53b5fcf..b361009 100644 --- a/kiwmi/desktop/output.c +++ b/kiwmi/desktop/output.c @@ -130,8 +130,8 @@ output_frame_notify(struct wl_listener *listener, void *data) wlr_renderer_begin(renderer, width, height); wlr_renderer_clear(renderer, (float[]){0.1f, 0.1f, 0.1f, 1.0f}); - double output_lx; - double output_ly; + double output_lx = 0; + double output_ly = 0; wlr_output_layout_output_coords( output_layout, wlr_output, &output_lx, &output_ly);