aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-02-05 22:53:20 -0800
committerVinson Lee <[email protected]>2013-02-07 21:51:20 -0800
commitb681ed6ac970e061e9dbe7309bb69b3a947ae62d (patch)
tree42b7d4072036bd7f9eef09d9dc163344cfe3dc64 /src
parent7c544e55daf9e6a1e46ea707243f59566873552c (diff)
glsl: Initialize all tfeedback_candidate_generator member variables.
Fixes uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/link_varyings.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
index e2cb46e8ced..b1317c8322b 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)
{
}