diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-02-05 22:53:20 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2013-02-07 21:51:20 -0800 |
commit | b681ed6ac970e061e9dbe7309bb69b3a947ae62d (patch) | |
tree | 42b7d4072036bd7f9eef09d9dc163344cfe3dc64 /src/glsl | |
parent | 7c544e55daf9e6a1e46ea707243f59566873552c (diff) |
glsl: Initialize all tfeedback_candidate_generator member variables.
Fixes uninitialized pointer field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/link_varyings.cpp | 4 |
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) { } |