Fixed #1888 GCC cannot compile due to uninitialized variables

This commit is contained in:
Dillen Meijboom 2018-05-02 11:15:31 +02:00
parent fe9cc21ea7
commit 5d525111e6

View file

@ -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;