[Piglit] [PATCH] ext_framebuffer_multisample: Initialized Sunburst member variables.

Vinson Lee vlee at freedesktop.org
Sat Dec 8 20:42:44 PST 2012


Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/ext_framebuffer_multisample/common.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tests/spec/ext_framebuffer_multisample/common.cpp b/tests/spec/ext_framebuffer_multisample/common.cpp
index 717718c..a18dddd 100644
--- a/tests/spec/ext_framebuffer_multisample/common.cpp
+++ b/tests/spec/ext_framebuffer_multisample/common.cpp
@@ -1033,7 +1033,16 @@ void Points::draw(const float (*proj)[4])
 
 Sunburst::Sunburst()
 	: out_type(GL_UNSIGNED_NORMALIZED),
-	  compute_depth(false)
+	  compute_depth(false),
+	  prog(0),
+	  rotation_loc(0),
+	  vert_depth_loc(0),
+	  frag_depth_loc(0),
+	  proj_loc(0),
+	  draw_colors_loc(0),
+	  vao(0),
+	  num_tris(0),
+	  vertex_buf(0)
 {
 }
 
-- 
1.8.0.1



More information about the Piglit mailing list