aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorDillen Meijboom <info@dmeijboom.nl>2018-05-02 09:40:45 +0000
committeremersion <contact@emersion.fr>2018-05-02 10:40:45 +0100
commitb45e2bd95e1843a56437541f3883d4d6431b3e0c (patch)
tree412e0da0dc45c3f7475207696182f166b7ba9fcb /sway/tree/view.c
parentfe9cc21ea70dc1a37cfadcb07b0abba3c5967211 (diff)
Fixed #1888 GCC cannot compile due to uninitialized variables (#1889)
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 05a9b277..87ed62c2 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -88,6 +88,7 @@ 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;