Permalink
Browse files

Change

  • Loading branch information...
1 parent e8c7edc commit 312a9e3528435685fe0ab655232716e3769e5394 @rsky committed Sep 2, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 kernel.c
View
@@ -113,14 +113,15 @@ PHP_FUNCTION(cl_get_kernel_info)
PHP_FUNCTION(cl_create_kernel)
{
cl_int errcode = CL_SUCCESS;
- zval *zprogram;
+ zval *zprogram = NULL;
phpcl_program_t *prg = NULL;
- char *kernel_name;
- int kernel_name_len;
+ char *kernel_name = NULL;
+ int kernel_name_len = 0;
cl_kernel kernel = NULL;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rs", &zprogram, &kernel_name, &kernel_name_len) == FAILURE) {
+ "rs", &zprogram, &kernel_name,
+ &kernel_name_len) == FAILURE) {
return;
}

0 comments on commit 312a9e3

Please sign in to comment.