[vlc-commits] xdg-shell: uninitialized variables

Rémi Denis-Courmont git at videolan.org
Mon Jul 2 20:52:16 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul  1 20:58:54 2018 +0300| [7c07bea519fd0c03468f1633c7e41bd74b22f761] | committer: Rémi Denis-Courmont

xdg-shell: uninitialized variables

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c07bea519fd0c03468f1633c7e41bd74b22f761
---

 modules/video_output/wayland/xdg-shell.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/wayland/xdg-shell.c b/modules/video_output/wayland/xdg-shell.c
index 8878b047e1..5f531f807c 100644
--- a/modules/video_output/wayland/xdg-shell.c
+++ b/modules/video_output/wayland/xdg-shell.c
@@ -487,6 +487,8 @@ static int Open(vout_window_t *wnd, const vout_window_cfg_t *cfg)
     sys->set.height = cfg->height;
     wl_list_init(&sys->outputs);
     wl_list_init(&sys->seats);
+    sys->cursor_theme = NULL;
+    sys->cursor_surface = NULL;
     vlc_mutex_init(&sys->lock);
     wnd->sys = sys;
     wnd->handle.wl = NULL;



More information about the vlc-commits mailing list