[Mesa-dev] [PATCH] glsl: Initialize ast_aggregate_initializer::constructor_type.
Vinson Lee
vlee at freedesktop.org
Fri Jul 12 17:24:04 PDT 2013
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/glsl/ast.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 9b119ed..c0350e7 100644
--- 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 */
}
--
1.8.1.2
More information about the mesa-dev
mailing list