aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-08-15 18:54:34 -0400
committerDrew DeVault <sir@cmpwn.com>2018-08-15 18:54:34 -0400
commit9e6ef44deb81e0a78bbfa3dcbdf8f4d6fb68c7ae (patch)
tree294df491cc3f995d9e28bd03fc8528cea682413b
parent09c8a048dade4fffa94fb5789a3dbb85893cf295 (diff)
Fix uninitialized variable
-rw-r--r--tinywl/tinywl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c
index d542bee4..9c749d05 100644
--- a/tinywl/tinywl.c
+++ b/tinywl/tinywl.c
@@ -370,7 +370,7 @@ static void render_surface(struct wlr_surface *surface,
return;
}
- double ox, oy;
+ double ox = 0, oy = 0;
wlr_output_layout_output_coords(
view->server->output_layout, output, &ox, &oy);
ox += view->x + sx, oy += view->y + sy;