[Mesa-dev] [PATCH 4/4] glsl/nir: init non-static class member.
Dave Airlie
airlied at gmail.com
Fri May 17 02:22:24 UTC 2019
From: Dave Airlie <airlied at redhat.com>
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
---
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 a51d39c4753..d21ad90505e 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -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));
}
--
2.21.0
More information about the mesa-dev
mailing list