summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 7e9211bd0..2342c0c00 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -4133,8 +4133,7 @@ void sentinelInfoCommand(client *c) {
sections_dict = cached_all_info_sectoins;
}
- sds info = sdsempty();
- info = genRedisInfoString(sections_dict, 0, 0);
+ sds info = genRedisInfoString(sections_dict, 0, 0);
if (sec_all || (dictFind(sections_dict, "sentinel") != NULL)) {
dictIterator *di;
dictEntry *de;