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

Skip to content

Commit fbe0f80

Browse files
committed
Issue #1618
This commit fixes regression added in 112c77e
1 parent 458a3d8 commit fbe0f80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

redis_array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ PHP_METHOD(RedisArray, _continuum)
653653
static void
654654
multihost_distribute_call(RedisArray *ra, zval *return_value, zval *z_fun, int argc, zval *argv)
655655
{
656-
zval z_arg, z_tmp;
656+
zval z_tmp;
657657
int i;
658658

659659
/* Init our array return */
@@ -665,7 +665,7 @@ multihost_distribute_call(RedisArray *ra, zval *return_value, zval *z_fun, int a
665665
ra_call_user_function(&redis_array_ce->function_table, &ra->redis[i], z_fun, &z_tmp, argc, argv);
666666

667667
/* Add the result for this host */
668-
add_assoc_zval_ex(return_value, ZSTR_VAL(ra->hosts[i]), ZSTR_LEN(ra->hosts[i]), &z_arg);
668+
add_assoc_zval_ex(return_value, ZSTR_VAL(ra->hosts[i]), ZSTR_LEN(ra->hosts[i]), &z_tmp);
669669
}
670670
}
671671

0 commit comments

Comments
 (0)