commit e4053191e6e62b454b96f2cd8b3b17eb2b9eadd1
parent 25a8f7dcb836212c8f8cd113a9eb6f46ef6efe12
Author: Ryan Dwyer <RyanDwyer@users.noreply.github.com>
Date: Sat, 27 Oct 2018 15:58:37 +1000
Merge pull request #2995 from colemickens/uninit-warnings
tree/view.c: fix uninitialized variables warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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: