Skip to content

Commit

Permalink
Fix cluster_init_seeds. Thanks @adlagares!
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Dec 1, 2017
1 parent d23eff9 commit db1347d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {
cluster->read_timeout, cluster->persistent, NULL, 0, 0);

// Index this seed by host/port
key_len = snprintf(key, sizeof(key), "%s:%u", redis_sock->host,
key_len = snprintf(key, sizeof(key), "%s:%u", ZSTR_VAL(redis_sock->host),
redis_sock->port);

// Add to our seed HashTable
Expand Down

0 comments on commit db1347d

Please sign in to comment.