From 5d525111e6113e7754c86cdab1b92c7dc2696642 Mon Sep 17 00:00:00 2001 From: Dillen Meijboom Date: Wed, 2 May 2018 11:15:31 +0200 Subject: [PATCH] Fixed #1888 GCC cannot compile due to uninitialized variables --- sway/tree/view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/tree/view.c b/sway/tree/view.c index 05a9b2773..87dd864f4 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -88,6 +88,9 @@ void view_autoconfigure(struct sway_view *view) { } double x, y, width, height; + + x = y = width = height = 0; + switch (view->border) { case B_NONE: x = view->swayc->x;