From: Francisco Jerez Date: Tue, 26 Nov 2013 20:43:13 +0000 (-0800) Subject: glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b2b4cc8857a9163055c4e9c8007d53a9e668e75;p=mesa.git glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it. Cc: Ian Romanick Cc: "10.0" Reviewed-by: Ian Romanick --- diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index f401f03bc76..d76d94b7a39 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -191,6 +191,8 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx, this->gs_input_prim_type = GL_POINTS; this->gs_input_size = 0; this->out_qualifier = new(this) ast_type_qualifier(); + memset(this->atomic_counter_offsets, 0, + sizeof(this->atomic_counter_offsets)); } /**