projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6128c22
)
glsl: Initialize assignment_generator member variables.
author
Vinson Lee
<vlee@freedesktop.org>
Tue, 24 Sep 2013 05:02:27 +0000
(22:02 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Wed, 25 Sep 2013 05:16:39 +0000
(22:16 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_variable_index_to_cond_assign.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/lower_variable_index_to_cond_assign.cpp
b/src/glsl/lower_variable_index_to_cond_assign.cpp
index 21674b5f8fb2f76e2d2d7598c5327293cee390c3..699fb390340b50bc40aed9862ed8cdb97777a1b6 100644
(file)
--- a/
src/glsl/lower_variable_index_to_cond_assign.cpp
+++ b/
src/glsl/lower_variable_index_to_cond_assign.cpp
@@
-192,6
+192,12
@@
struct assignment_generator
ir_variable* var;
assignment_generator()
+ : base_ir(NULL),
+ rvalue(NULL),
+ old_index(NULL),
+ is_write(false),
+ write_mask(0),
+ var(NULL)
{
}