projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa5ed99
)
glsl: Initialize ast_function member variables.
author
Vinson Lee
<vlee@freedesktop.org>
Sun, 10 Feb 2013 00:38:53 +0000
(
01:38
+0100)
committer
Vinson 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
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_parser_extras.cpp
b/src/glsl/glsl_parser_extras.cpp
index 84c477773ee8d0a739bac4bbb3bd59a2b0fd71e3..ec4e3196ba7021e5ea9818e60634b22cbeb8d473 100644
(file)
--- 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 */
}