mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Sentinel: INFO-CACHE GCC minior code cleanup.
I guess the initial goal of the initialization was to suppress GCC warning, but if we have to initialize, we can do it with the base-case value instead of NULL which is never retained.
This commit is contained in:
parent
0422321617
commit
c83a917286
@ -2796,10 +2796,8 @@ void sentinelCommand(redisClient *c) {
|
||||
*/
|
||||
dictType copy_keeper = instancesDictType;
|
||||
copy_keeper.valDestructor = NULL;
|
||||
dict *masters_local = NULL;
|
||||
if (c->argc == 2) {
|
||||
masters_local = sentinel.masters;
|
||||
} else {
|
||||
dict *masters_local = sentinel.masters;
|
||||
if (c->argc > 2) {
|
||||
masters_local = dictCreate(©_keeper, NULL);
|
||||
|
||||
for (int i = 2; i < c->argc; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user