Clean gcc 7.x warnings, redis-cli cluster fix.

This commit is contained in:
Yossi Gottlieb
2018-06-03 15:54:30 +03:00
parent 86de089a1e
commit e1222d8b10
4 changed files with 33 additions and 30 deletions

View File

@ -5091,7 +5091,7 @@ static int clusterManagerCommandImport(int argc, char **argv) {
// Build a slot -> node map
clusterManagerNode *slots_map[CLUSTER_MANAGER_SLOTS];
memset(slots_map, 0, sizeof(slots_map) / sizeof(clusterManagerNode *));
memset(slots_map, 0, sizeof(slots_map));
listIter li;
listNode *ln;
for (i = 0; i < CLUSTER_MANAGER_SLOTS; i++) {