Module: Mesa Branch: master Commit: bb993da7959da07cbbbd0f8d41e07652263260e6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb993da7959da07cbbbd0f8d41e07652263260e6
Author: Rob Clark <robcl...@freedesktop.org> Date: Wed May 18 10:58:29 2016 -0400 nir/glsl_to_nir: quell some uninit_member coverity errors Signed-off-by: Rob Clark <robcl...@freedesktop.org> Acked-by: Matt Turner <matts...@gmail.com> --- src/compiler/nir/glsl_to_nir.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/glsl_to_nir.cpp index b25f065..00e3fd5 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() _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit