glsl: add missing initialization of the location path field
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 21 Nov 2019 09:05:49 +0000 (10:05 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 21 Nov 2019 11:55:15 +0000 (12:55 +0100)
commitc573b501797c600c176da413ef75ee81454ec050
tree8bb04684c589747354cf53abd75e474c9e3b513c
parent1a0500cd044e6f7640df918e9d3a28fe7b4e86aa
glsl: add missing initialization of the location path field

This was apparently missed in 67b32190f3c95, which added support
for ARB_shading_language_include to #line, including the 'path'
field for the location.

Fixes crashes in CTS with all drivers as they attempt to access
an uninitialized path string during parsing.

Fixes: 67b32190f3c95 ("glsl: add ARB_shading_language_include support to #line")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2132
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jose Maria Casanova <jmcasanova@igalia.com>
src/compiler/glsl/glsl_parser_extras.h