From: Dave Airlie Date: Fri, 8 Feb 2019 05:23:46 +0000 (+1000) Subject: glsl: glsl to nir fix uninit class member. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2e82c2682439691c1d7b34762d70e134dc8da8f;p=mesa.git glsl: glsl to nir fix uninit class member. The constructor should init this to NULL Reviewed-by: Alejandro PiƱeiro --- 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)); }