glsl: Initialize member variable is_ubo_var in constructor.

Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Vinson Lee
2013-06-08 13:46:54 -07:00
parent 20c691b936
commit def634979d
+1 -1
View File
@@ -157,7 +157,7 @@ class count_uniform_size : public program_resource_visitor {
public:
count_uniform_size(struct string_to_uint_map *map)
: num_active_uniforms(0), num_values(0), num_shader_samplers(0),
num_shader_uniform_components(0), map(map)
num_shader_uniform_components(0), is_ubo_var(false), map(map)
{
/* empty */
}