From 7920904844266ad9fc84e5f1abf8cc9c17e28717 Mon Sep 17 00:00:00 2001 From: Binbin Date: Thu, 18 Jul 2024 11:20:35 +0800 Subject: [PATCH] fix false Signed-off-by: Binbin --- src/rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;