summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-04-08 17:39:22 +0200
committerantirez <antirez@gmail.com>2019-04-08 17:39:26 +0200
commit75648f99a5ba41812c115f83f8b668f030acfaee (patch)
tree54527ec117d321f3474877cb73755d0fd43dcad3
parent5e8caca0366e5fdf5fc36292c86964360203de77 (diff)
downloadredis-75648f99a5ba41812c115f83f8b668f030acfaee.tar.gz
Fix assert comparison in fetchClusterSlotsConfiguration().
-rw-r--r--src/redis-benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c
index 12e9f7e41..4e2662f21 100644
--- a/src/redis-benchmark.c
+++ b/src/redis-benchmark.c
@@ -1192,7 +1192,7 @@ static int fetchClusterSlotsConfiguration(client c) {
assert(reply->type == REDIS_REPLY_ARRAY);
for (i = 0; i < reply->elements; i++) {
redisReply *r = reply->element[i];
- assert(r->type = REDIS_REPLY_ARRAY);
+ assert(r->type == REDIS_REPLY_ARRAY);
assert(r->elements >= 3);
int from, to, slot;
from = r->element[0]->integer;