[Piglit] [PATCH] util: Initialize vbo_data::stride in constructor.
Vinson Lee
vlee at freedesktop.org
Thu Nov 29 23:32:26 PST 2012
Fixes uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/util/piglit-vbo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/util/piglit-vbo.cpp b/tests/util/piglit-vbo.cpp
index 2ff9c61..9749934 100644
--- a/tests/util/piglit-vbo.cpp
+++ b/tests/util/piglit-vbo.cpp
@@ -442,7 +442,7 @@ vbo_data::parse_line(std::string line, unsigned int line_num, GLuint prog)
* then exit with PIGLIT_FAIL.
*/
vbo_data::vbo_data(const std::string &text, GLuint prog)
- : header_seen(false), num_rows(0)
+ : header_seen(false), stride(0), num_rows(0)
{
unsigned int line_num = 1;
--
1.8.0
More information about the Piglit
mailing list