projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebdddb3
)
glsl/nir: init non-static class member.
author
Dave Airlie
<airlied@redhat.com>
Fri, 17 May 2019 02:20:19 +0000
(12:20 +1000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/glsl_to_nir.cpp
b/src/compiler/glsl/glsl_to_nir.cpp
index a51d39c4753087cb4f8eae2fbfb13537cb2dea56..d21ad90505e80c1681ea47f1af0b936f1069f9b1 100644
(file)
--- 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));
}