Skip to content

Commit

Permalink
Merge pull request redis#5921 from vattezhang/unstable_temp
Browse files Browse the repository at this point in the history
fix: fix the if condition in clusterManagerShowClusterInfo
  • Loading branch information
antirez authored Mar 13, 2019
2 parents 3e64890 + bdc783b commit 53d1dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2871,7 +2871,7 @@ static void clusterManagerShowClusterInfo(void) {
replicas++;
}
redisReply *reply = CLUSTER_MANAGER_COMMAND(node, "DBSIZE");
if (reply != NULL || reply->type == REDIS_REPLY_INTEGER)
if (reply != NULL && reply->type == REDIS_REPLY_INTEGER)
dbsize = reply->integer;
if (dbsize < 0) {
char *err = "";
Expand Down

0 comments on commit 53d1dc1

Please sign in to comment.