[Beignet] [PATCH] fix piglit cl-api-get-program-info fail.
xionghu.luo at intel.com
xionghu.luo at intel.com
Mon Sep 8 15:42:07 PDT 2014
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
More information about the Beignet
mailing list