summaryrefslogtreecommitdiff
path: root/tinywl.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-08-15 18:54:34 -0400
committerDrew DeVault <[email protected]>2018-08-15 18:54:34 -0400
commitfc3609dba2fa809904ecce19a10d21ac01466f28 (patch)
tree513b973c035a7da3e99e5f90c3f37a83992b4592 /tinywl.c
parentdc9fc13c68a9fd4f1f4d7027370ffaed72ad9047 (diff)
Fix uninitialized variable
Diffstat (limited to 'tinywl.c')
-rw-r--r--tinywl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinywl.c b/tinywl.c
index d542bee..9c749d0 100644
--- a/tinywl.c
+++ b/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;