Merge pull request #832 from turlando/fix/rootston-uninitialized-variable

Initialize rootston _surface
This commit is contained in:
emersion 2018-04-05 13:41:39 -04:00 committed by GitHub
commit b6482bacf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ static bool view_at(struct roots_view *view, double lx, double ly,
} }
double _sx, _sy; double _sx, _sy;
struct wlr_surface *_surface; struct wlr_surface *_surface = NULL;
switch (view->type) { switch (view->type) {
case ROOTS_XDG_SHELL_V6_VIEW: case ROOTS_XDG_SHELL_V6_VIEW:
_surface = wlr_xdg_surface_v6_surface_at(view->xdg_surface_v6, _surface = wlr_xdg_surface_v6_surface_at(view->xdg_surface_v6,