[Mesa-dev] [PATCH] glsl: Initialize all tfeedback_candidate_generator member variables.
Vinson Lee
vlee at freedesktop.org
Tue Feb 5 22:59:23 PST 2013
Fixes uninitialized pointer field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/glsl/link_varyings.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
index e2cb46e..b1317c8 100644
--- a/src/glsl/link_varyings.cpp
+++ b/src/glsl/link_varyings.cpp
@@ -868,7 +868,9 @@ public:
tfeedback_candidate_generator(void *mem_ctx,
hash_table *tfeedback_candidates)
: mem_ctx(mem_ctx),
- tfeedback_candidates(tfeedback_candidates)
+ tfeedback_candidates(tfeedback_candidates),
+ toplevel_var(NULL),
+ varying_floats(0)
{
}
--
1.8.1
More information about the mesa-dev
mailing list