[Piglit] [PATCH] cl-api-enqueue-map-buffer: Initialize variable.
Vinson Lee
vlee at freedesktop.org
Sat Dec 13 20:57:02 PST 2014
Fix uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/cl/api/enqueue-map-buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cl/api/enqueue-map-buffer.c b/tests/cl/api/enqueue-map-buffer.c
index 13a2511..f599d18 100644
--- a/tests/cl/api/enqueue-map-buffer.c
+++ b/tests/cl/api/enqueue-map-buffer.c
@@ -131,7 +131,7 @@ piglit_cl_test(const int argc,
* Version: 1.2
*/
if(env->version >= 12) {
- enum piglit_result result;
+ enum piglit_result result = PIGLIT_PASS;
cl_mem device_mem;
cl_ulong alloc_size = 64;
cl_int *host_mem;
--
1.9.2
More information about the Piglit
mailing list