[Piglit] [PATCH] ext_framebuffer_multisample: Initialize Fbo member variables.

Vinson Lee vlee at freedesktop.org
Mon Dec 10 22:29:39 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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/spec/ext_framebuffer_multisample/common.cpp b/tests/spec/ext_framebuffer_multisample/common.cpp
index a18dddd..f25fb53 100644
--- a/tests/spec/ext_framebuffer_multisample/common.cpp
+++ b/tests/spec/ext_framebuffer_multisample/common.cpp
@@ -124,6 +124,11 @@ FboConfig::FboConfig(int num_samples, int width, int height)
 
 Fbo::Fbo()
 	: config(0, 0, 0), /* will be overwritten on first call to setup() */
+	  handle(0),
+	  color_tex(0),
+	  color_rb(0),
+	  depth_rb(0),
+	  stencil_rb(0),
 	  gl_objects_generated(false)
 {
 }
-- 
1.8.0.1



More information about the Piglit mailing list