From af3df1133beff772e00506993b5c9ac5291e1cf7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 16 Aug 2024 12:25:59 -0400 Subject: [PATCH] egl: initialize dri error code variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/egl/drivers/dri2/egl_dri2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index a6e9ab28c6d..1c35d5c0997 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2051,7 +2051,7 @@ dri2_create_image_khr_texture(_EGLDisplay *disp, _EGLContext *ctx, _EGLImageAttribs attrs; GLuint depth; GLenum gl_target; - unsigned error; + unsigned error = __DRI_IMAGE_ERROR_SUCCESS; if (texture == 0) { _eglError(EGL_BAD_PARAMETER, "dri2_create_image_khr"); @@ -2511,7 +2511,7 @@ dri2_create_image_dma_buf(_EGLDisplay *disp, _EGLContext *ctx, int pitches[DMA_BUF_MAX_PLANES]; int offsets[DMA_BUF_MAX_PLANES]; uint64_t modifier; - unsigned error; + unsigned error = __DRI_IMAGE_ERROR_SUCCESS; EGLint egl_error; /**