[Piglit] [PATCH] getteximage-formats: Fix uninitialized variable.
Vinson Lee
vlee at vmware.com
Fri Dec 2 23:21:51 PST 2011
Fixes Coverity uninitialized scalar variable defect.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
tests/texturing/getteximage-formats.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c
index c891835..f6bdd56 100644
--- a/tests/texturing/getteximage-formats.c
+++ b/tests/texturing/getteximage-formats.c
@@ -239,6 +239,10 @@ compute_expected_color(const struct format_desc *fmt,
}
else {
baseFormat = 0; /* ??? */
+ texel[0] = 0.0;
+ texel[1] = 0.0;
+ texel[2] = 0.0;
+ texel[3] = 0.0;
}
}
else if (l > 0) {
--
1.7.7.3
More information about the Piglit
mailing list