diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-07-15 23:15:06 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:05:29 +0300 |
commit | 394708cbd48c715f9acb86e5ef1ec01309f70b5e (patch) | |
tree | 4b0f63e2684ff793da1ba47d0e140ed311c1132f /cluster_library.c | |
parent | 05597f1e6d3f8d47b40690993f8da51fdcd11cf2 (diff) |
Initialize variable to avoid a segfault if all nodes are downo
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c index 9173cdcd..c05064be 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -826,7 +826,7 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) { PHPAPI int cluster_map_keyspace(redisCluster *c TSRMLS_DC) { RedisSock **seed; - clusterReply *slots; + clusterReply *slots=NULL; int mapped=0; // Iterate over seeds until we can get slots |