From 6274a6789deaeea35951e5409e94e4ff77de645a Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Mon, 12 Jan 2015 15:40:30 +0100
Subject: [PATCH] Cluster: initialize mf_end.

Can't be initialized by resetManualFailover() since it's actual state
the function uses, so we need to initialize it at startup time. Not
really a bug in practical terms, but showed up into valgrind and is not
technically correct anyway.
---
 src/cluster.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cluster.c b/src/cluster.c
index a308fc507..7eeaa8e58 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -479,6 +479,7 @@ void clusterInit(void) {
      * the IP address via MEET messages. */
     myself->port = server.port;
 
+    server.cluster->mf_end = 0;
     resetManualFailover();
 }