[Beignet] [PATCH] fix piglit cl-api-get-program-info fail.

Zhigang Gong zhigang.gong at linux.intel.com
Mon Sep 8 23:39:25 PDT 2014


LGTM, will push latter, thanks.

On Tue, Sep 09, 2014 at 06:42:07AM +0800, xionghu.luo at intel.com wrote:
> From: Luo Xionghu <xionghu.luo at intel.com>
> 
> add pointer check.
> 
> Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
> ---
>  src/cl_program.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/cl_program.c b/src/cl_program.c
> index c141a35..a745c00 100644
> --- a/src/cl_program.c
> +++ b/src/cl_program.c
> @@ -743,7 +743,7 @@ cl_program_get_kernel_names(cl_program p, size_t size, char *names, size_t *size
>    int i = 0;
>    const char *ker_name = NULL;
>    size_t len = 0;
> -  *size_ret = 0;
> +  if(size_ret) *size_ret = 0;
>  
>    if(p->ker == NULL) {
>      return;
> -- 
> 1.7.9.5
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list