Skip to content

Commit b624a8b

Browse files
committed
Fix valgrind warnings
1 parent 4f290ea commit b624a8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cluster_library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ PHP_REDIS_API void cluster_info_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster
20362036

20372037
// Return our array
20382038
if(CLUSTER_IS_ATOMIC(c)) {
2039-
RETVAL_ZVAL(z_result, 0, 1);
2039+
RETVAL_ZVAL(z_result, 1, 0);
20402040
} else {
20412041
add_next_index_zval(&c->multi_resp, z_result);
20422042
}

redis_cluster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ PHP_METHOD(RedisCluster, keys) {
10771077
efree(cmd);
10781078

10791079
/* Return our keys */
1080-
RETURN_ZVAL(z_ret, 0, 1);
1080+
RETURN_ZVAL(z_ret, 1, 0);
10811081
}
10821082
/* }}} */
10831083

@@ -1987,7 +1987,7 @@ PHP_METHOD(RedisCluster, _masters) {
19871987
add_next_index_zval(z_ret, z_sub);
19881988
}
19891989

1990-
RETVAL_ZVAL(z_ret, 0, 1);
1990+
RETVAL_ZVAL(z_ret, 1, 0);
19911991
}
19921992

19931993
PHP_METHOD(RedisCluster, _redir) {

0 commit comments

Comments
 (0)