[Piglit] [PATCH] cl-api-enqueue-map-buffer: Initialize variable.
Brian Paul
brianp at vmware.com
Sun Dec 14 09:22:03 PST 2014
On 12/13/2014 09:57 PM, Vinson Lee wrote:
> 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;
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list