From: Rob Clark Date: Wed, 18 May 2016 14:58:29 +0000 (-0400) Subject: nir/glsl_to_nir: quell some uninit_member coverity errors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb993da7959da07cbbbd0f8d41e07652263260e6;p=mesa.git nir/glsl_to_nir: quell some uninit_member coverity errors Signed-off-by: Rob Clark Acked-by: Matt Turner --- diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/glsl_to_nir.cpp index b25f0658898..00e3fd5b71e 100644 --- a/src/compiler/nir/glsl_to_nir.cpp +++ b/src/compiler/nir/glsl_to_nir.cpp @@ -213,6 +213,12 @@ nir_visitor::nir_visitor(nir_shader *shader) _mesa_key_pointer_equal); this->overload_table = _mesa_hash_table_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal); + this->result = NULL; + this->impl = NULL; + this->var = NULL; + this->deref_head = NULL; + this->deref_tail = NULL; + memset(&this->b, 0, sizeof(this->b)); } nir_visitor::~nir_visitor()