Merge pull request #2995 from colemickens/uninit-warnings

tree/view.c: fix uninitialized variables warning
This commit is contained in:
Ryan Dwyer 2018-10-27 15:58:37 +10:00 committed by GitHub
commit e4053191e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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