Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 367bc6a

Browse files
committed
Prepare to merge #1280
1 parent 70b3c93 commit 367bc6a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cluster_library.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,11 +892,10 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {
892892

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

897897
/* Has to be a string */
898-
if (z_seed == NULL || Z_TYPE_P(z_seed) != IS_STRING)
899-
continue;
898+
if (Z_TYPE_P(z_seed) != IS_STRING) continue;
900899

901900
// Grab a copy of the string
902901
str = Z_STRVAL_P(z_seed);

0 commit comments

Comments
 (0)