From a9f265e8b758a58a1443943b00b30147f7c02838 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 1 Jun 2020 20:09:07 +0530 Subject: [PATCH] Initialize a couple of local vars --- glfw/wl_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index e331a58b5..4d061acc4 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -685,8 +685,8 @@ static bool createXdgSurface(_GLFWwindow* window) static void setCursorImage(_GLFWwindow* window, _GLFWcursorWayland* cursorWayland) { - struct wl_cursor_image* image; - struct wl_buffer* buffer; + struct wl_cursor_image* image = NULL; + struct wl_buffer* buffer = NULL; struct wl_surface* surface = _glfw.wl.cursorSurface; const int scale = window->wl.scale;