[Mesa-dev] [PATCH v3] glsl: Initialize parcel_out_uniform_storage member variables.
Vinson Lee
vlee at freedesktop.org
Sun Jul 21 01:00:30 PDT 2013
Fixes "Uninitialized scalar field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/glsl/link_uniforms.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 35ace1e..6bda68c 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -267,7 +267,10 @@ public:
parcel_out_uniform_storage(struct string_to_uint_map *map,
struct gl_uniform_storage *uniforms,
union gl_constant_value *values)
- : map(map), uniforms(uniforms), values(values)
+ : ubo_block_index(0), ubo_byte_offset(0), ubo_row_major(false),
+ shader_type(MESA_SHADER_VERTEX), map(map), uniforms(uniforms),
+ next_sampler(0), values(values), targets(), shader_samplers_used(0),
+ shader_shadow_samplers(0)
{
}
--
1.8.2.1
More information about the mesa-dev
mailing list