diff options
author | Vinson Lee <vlee@freedesktop.org> | 2012-11-29 23:18:23 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2012-11-30 19:37:18 -0800 |
commit | 3c3281a148a407fca6562f10f49a2282067fc1e3 (patch) | |
tree | fcf3b1fe3c9c70c894b18b61983291f488f96e86 /tests/util | |
parent | c5cc73b786fdb36ff7957e540298dbf6f8048c5f (diff) |
util: Initialize vbo_data::stride in constructor.
Fixes uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/util')
-rw-r--r-- | tests/util/piglit-vbo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util/piglit-vbo.cpp b/tests/util/piglit-vbo.cpp index 2ff9c61e..97499348 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; |