mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
ast: Initialize location data in constructor of all ast_node objects.
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!
This commit is contained in:
parent
40f57c2bec
commit
ec9675ec53
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue