From 403df1814df0b59d0fbf8786f5012f73396a5699 Mon Sep 17 00:00:00 2001 From: Hoyub Lee Date: Tue, 26 Sep 2017 19:02:07 +0900 Subject: [PATCH] wayland-egl: Initialize uninitialized variable in wl_egl_window_create Change-Id: I5e123fd8f0b9d2b0f77bae77db03a67906ce389c Signed-off-by: Hoyub Lee --- src/wayland-egl/wayland-egl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland-egl/wayland-egl.c b/src/wayland-egl/wayland-egl.c index cab186a..3e94e9d 100644 --- a/src/wayland-egl/wayland-egl.c +++ b/src/wayland-egl/wayland-egl.c @@ -93,6 +93,9 @@ wl_egl_window_create(struct wl_surface *surface, egl_window->surface = surface; + egl_window->width = 0; + egl_window->height = 0; + egl_window->resize_callback = NULL; wl_egl_window_resize(egl_window, width, height, 0, 0); -- 2.7.4