From: Vinson Lee Date: Sun, 10 Feb 2013 00:38:53 +0000 (+0100) Subject: glsl: Initialize ast_function member variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd90ebefd4f63d00eb65af6069fb078e454c43f1;p=mesa.git glsl: Initialize ast_function member variables. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee --- diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 84c477773ee..ec4e3196ba7 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -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 */ }