projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c544e5
)
glsl: Initialize all tfeedback_candidate_generator member variables.
author
Vinson Lee
<vlee@freedesktop.org>
Wed, 6 Feb 2013 06:53:20 +0000
(22:53 -0800)
committer
Vinson Lee
<vlee@freedesktop.org>
Fri, 8 Feb 2013 05:51:20 +0000
(21:51 -0800)
Fixes uninitialized pointer field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/link_varyings.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/link_varyings.cpp
b/src/glsl/link_varyings.cpp
index e2cb46e8ced039f850b901d8325f54ac772f7e26..b1317c8322be7e39c0101b4a2a696f9a1375805b 100644
(file)
--- 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)
{
}