Skip to content

Commit

Permalink
Prepare to merge #1280
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Dec 6, 2017
1 parent 70b3c93 commit 367bc6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,11 +892,10 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {

// Iterate our seeds array
for (i = 0; i < count; i++) {
z_seed = z_seeds[i];
if ((z_seed = z_seeds[i]) == NULL) continue;

/* Has to be a string */
if (z_seed == NULL || Z_TYPE_P(z_seed) != IS_STRING)
continue;
if (Z_TYPE_P(z_seed) != IS_STRING) continue;

// Grab a copy of the string
str = Z_STRVAL_P(z_seed);
Expand Down

0 comments on commit 367bc6a

Please sign in to comment.