glsl: Initialize ast_function member variables.
authorVinson Lee <vlee@freedesktop.org>
Sun, 10 Feb 2013 00:38:53 +0000 (01:38 +0100)
committerVinson Lee <vlee@freedesktop.org>
Sun, 21 Jul 2013 07:23:17 +0000 (00:23 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/glsl/glsl_parser_extras.cpp

index 84c477773ee8d0a739bac4bbb3bd59a2b0fd71e3..ec4e3196ba7021e5ea9818e60634b22cbeb8d473 100644 (file)
@@ -1115,7 +1115,8 @@ ast_function::print(void) const
 
 
 ast_function::ast_function(void)
-   : is_definition(false), signature(NULL)
+   : return_type(NULL), identifier(NULL), is_definition(false),
+     signature(NULL)
 {
    /* empty */
 }