summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-02-10 01:38:53 +0100
committerVinson Lee <[email protected]>2013-07-21 00:23:17 -0700
commitcd90ebefd4f63d00eb65af6069fb078e454c43f1 (patch)
tree6d3fc6d403aea747e289ed20019cbf75305482ac
parentfa5ed99d8e809fb86e486a40273a4a6971055398 (diff)
glsl: Initialize ast_function member variables.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]>
-rw-r--r--src/glsl/glsl_parser_extras.cpp3
1 files changed, 2 insertions, 1 deletions
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 */
}