glsl: Initialize ast_aggregate_initializer::constructor_type. 87/7487/1
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 9b119ed..c0350e7 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 */
    }