From cd90ebefd4f63d00eb65af6069fb078e454c43f1 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 10 Feb 2013 01:38:53 +0100 Subject: [PATCH] glsl: Initialize ast_function member variables. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/glsl_parser_extras.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ } -- 2.30.2