Skip to content

Commit

Permalink
Issue #1618
Browse files Browse the repository at this point in the history
This commit fixes regression added in 112c77e
  • Loading branch information
yatsukhnenko committed Aug 9, 2019
1 parent 458a3d8 commit fbe0f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ PHP_METHOD(RedisArray, _continuum)
static void
multihost_distribute_call(RedisArray *ra, zval *return_value, zval *z_fun, int argc, zval *argv)
{
zval z_arg, z_tmp;
zval z_tmp;
int i;

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

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

Expand Down

0 comments on commit fbe0f80

Please sign in to comment.