[Piglit] [PATCH] Fix use of uninitialized variable valgrind error
arsenm2 at gmail.com
arsenm2 at gmail.com
Wed Aug 24 04:37:07 UTC 2016
From: Matt Arsenault <arsenm2 at gmail.com>
---
tests/cl/api/set-kernel-arg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cl/api/set-kernel-arg.c b/tests/cl/api/set-kernel-arg.c
index 9b5a567..d306931 100644
--- a/tests/cl/api/set-kernel-arg.c
+++ b/tests/cl/api/set-kernel-arg.c
@@ -107,7 +107,7 @@ piglit_cl_test(const int argc,
cl_int3 vec3;
struct_arg_t s_arg;
- cl_mem invalid_buffer;
+ cl_mem invalid_buffer = NULL;
cl_bool image_support =
piglit_cl_get_device_image_support(env->context->device_ids[0]);
--
2.9.2
More information about the Piglit
mailing list