Mesa (master): glsl: Initialize member variable is_ubo_var in constructor.
Vinson Lee
vlee at kemper.freedesktop.org
Fri Jun 28 05:02:11 UTC 2013
Module: Mesa
Branch: master
Commit: def634979d4019064c72aa6b80281c996741af2b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=def634979d4019064c72aa6b80281c996741af2b
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sat Jun 8 13:46:54 2013 -0700
glsl: Initialize member variable is_ubo_var in constructor.
Fixes "Uninitialized scalar field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/glsl/link_uniforms.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 208778e..35ace1e 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -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 */
}
More information about the mesa-commit
mailing list