projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6bfe62
)
glsl: Initialize ast_aggregate_initializer::constructor_type.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 13 Jul 2013 00:16:47 +0000
(17:16 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Sat, 13 Jul 2013 01:42:46 +0000
(18:42 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/ast.h
patch
|
blob
|
history
diff --git
a/src/glsl/ast.h
b/src/glsl/ast.h
index 9b119edbb2f8598166968344e5291e028e55962c..c0350e7358eb13faffee9ec2e646272fefc59b89 100644
(file)
--- a/
src/glsl/ast.h
+++ b/
src/glsl/ast.h
@@
-307,7
+307,8
@@
private:
class ast_aggregate_initializer : public ast_expression {
public:
ast_aggregate_initializer()
- : ast_expression(ast_aggregate, NULL, NULL, NULL)
+ : ast_expression(ast_aggregate, NULL, NULL, NULL),
+ constructor_type(NULL)
{
/* empty */
}