glsl: Initialize member variable is_ubo_var in constructor.
authorVinson Lee <vlee@freedesktop.org>
Sat, 8 Jun 2013 20:46:54 +0000 (13:46 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 28 Jun 2013 04:51:32 +0000 (21:51 -0700)
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>
src/glsl/link_uniforms.cpp

index 208778e4ada6297facbc8932b71634b2d3272474..35ace1ec3fb32bbd2e9da852ea2eb534a0c87f10 100644 (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 */
    }