glsl: Initialize ast_aggregate_initializer::constructor_type.
authorVinson Lee <vlee@freedesktop.org>
Sat, 13 Jul 2013 00:16:47 +0000 (17:16 -0700)
committerVinson 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

index 9b119edbb2f8598166968344e5291e028e55962c..c0350e7358eb13faffee9ec2e646272fefc59b89 100644 (file)
@@ -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 */
    }