From 6414b5d288b89c9f3ecde0757f16184071b6036f Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Fri, 26 Oct 2018 22:25:11 -0700 Subject: tree/view.c: fix uninitialized variables warning --- sway/tree/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway') diff --git a/sway/tree/view.c b/sway/tree/view.c index 5a1b2e37..cf67acbb 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -258,7 +258,7 @@ void view_autoconfigure(struct sway_view *view) { } } - double x, y, width, height = 0; + double x = 0, y = 0, width = 0, height = 0; switch (view->border) { case B_CSD: case B_NONE: -- cgit v1.2.3