projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f57c2
)
ast: Initialize location data in constructor of all ast_node objects.
author
Carl Worth
<cworth@cworth.org>
Thu, 29 Jul 2010 23:39:36 +0000
(16:39 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 30 Jul 2010 22:03:37 +0000
(15:03 -0700)
This prevents using uninitialized data in _msea_glsl_error in some
cases, (including at least 6 piglit tests). Thanks to valgrind for
pointing out the problem!
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 20a5021b1469d5661765e1cb8a5318841607d932..15fa61d950586a19e2396991647487921612a4bb 100644
(file)
--- a/
src/glsl/glsl_parser_extras.cpp
+++ b/
src/glsl/glsl_parser_extras.cpp
@@
-280,7
+280,9
@@
ast_node::print(void) const
ast_node::ast_node(void)
{
- /* empty */
+ this->location.source = 0;
+ this->location.line = 0;
+ this->location.column = 0;
}