glsl/nir: init non-static class member.
authorDave Airlie <airlied@redhat.com>
Fri, 17 May 2019 02:20:19 +0000 (12:20 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 May 2019 02:33:09 +0000 (12:33 +1000)
glsl_to_nir.cpp:276: uninit_member: Non-static class member "sig" is not initialized in this constructor nor in any functions that it calls.

Reported by coverity

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/glsl_to_nir.cpp

index a51d39c4753087cb4f8eae2fbfb13537cb2dea56..d21ad90505e80c1681ea47f1af0b936f1069f9b1 100644 (file)
@@ -270,6 +270,7 @@ nir_visitor::nir_visitor(gl_context *ctx, nir_shader *shader)
    this->result = NULL;
    this->impl = NULL;
    this->deref = NULL;
+   this->sig = NULL;
    memset(&this->b, 0, sizeof(this->b));
 }