wayland-egl: Initialize uninitialized variable in wl_egl_window_create 43/152543/2
authorHoyub Lee <hoyub.lee@samsung.com>
Tue, 26 Sep 2017 10:02:07 +0000 (19:02 +0900)
committerHoyub Lee <hoyub.lee@samsung.com>
Wed, 27 Sep 2017 01:59:46 +0000 (10:59 +0900)
Change-Id: I5e123fd8f0b9d2b0f77bae77db03a67906ce389c
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
src/wayland-egl/wayland-egl.c

index cab186a..3e94e9d 100644 (file)
@@ -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);