diff --git a/src/rdb.c b/src/rdb.c index 38a848a26a..588d88e29b 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -3509,7 +3509,7 @@ int rdbSaveToReplicasSockets(int req, rdbSaveInfo *rsi) { listNode *ln; listIter li; pid_t childpid; - int pipefds[2], rdb_pipe_write, safe_to_exit_pipe; + int pipefds[2], rdb_pipe_write = 0, safe_to_exit_pipe = 0; int dual_channel = (req & REPLICA_REQ_RDB_CHANNEL); if (hasActiveChildProcess()) return C_ERR;