From 52f844d2dcb3335b84336c50943d604461335ad3 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 21 Nov 2020 17:23:44 -0600 Subject: [PATCH] vkd3d-shader: Initialize "messages" to NULL in vkd3d_shader_preprocess() (Valgrind). Signed-off-by: Zebediah Figura Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- libs/vkd3d-shader/vkd3d_shader_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c index 664110e7..6289a185 100644 --- a/libs/vkd3d-shader/vkd3d_shader_main.c +++ b/libs/vkd3d-shader/vkd3d_shader_main.c @@ -1152,5 +1152,8 @@ int vkd3d_shader_preprocess(const struct vkd3d_shader_compile_info *compile_info { TRACE("compile_info %p, out %p, messages %p.\n", compile_info, out, messages); + if (messages) + *messages = NULL; + return VKD3D_ERROR_NOT_IMPLEMENTED; }