From d2e82c2682439691c1d7b34762d70e134dc8da8f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 8 Feb 2019 15:23:46 +1000 Subject: [PATCH] glsl: glsl to nir fix uninit class member. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The constructor should init this to NULL Reviewed-by: Alejandro Piñeiro --- src/compiler/glsl/glsl_to_nir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 09599e4cee7..d62de862fac 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -180,6 +180,7 @@ nir_visitor::nir_visitor(nir_shader *shader) this->overload_table = _mesa_pointer_hash_table_create(NULL); this->result = NULL; this->impl = NULL; + this->deref = NULL; memset(&this->b, 0, sizeof(this->b)); } -- 2.30.2