Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31b3840

Browse files
committed
redis.c:5413:23: warning: 'z_fun' may be used uninitialized in this function
1 parent 1defd42 commit 31b3840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5289,7 +5289,7 @@ PHP_METHOD(Redis, subscribe)
52895289
char *type_response;
52905290

52915291
int callback_type;
5292-
zval *z_o, *z_fun,*z_ret, *z_args[3];
5292+
zval *z_o, *z_fun = NULL,*z_ret, *z_args[3];
52935293
char *method_name;
52945294

52955295
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oaz|z",

0 commit comments

Comments
 (0)