[Piglit] [PATCH] Fix use of uninitialized variable valgrind error

Jan Vesely jv356 at scarletmail.rutgers.edu
Wed Aug 24 15:12:15 UTC 2016


On Tue, 2016-08-23 at 21:37 -0700, arsenm2 at gmail.com wrote:
> From: Matt Arsenault <arsenm2 at gmail.com>

Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>

although I would not expect random value to be a valid mem object.

Jan

> 
> ---
>  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]);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160824/c67ddaa0/attachment.sig>


More information about the Piglit mailing list