From b1859bc19393389815813c75474ce62d796e269c Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Thu, 25 Jun 2020 08:36:22 +0000 Subject: [PATCH] uninitialized variable cleanup timer in last step --- src/dnode/src/dnodeMgmt.c | 2 +- src/mnode/src/mnodeMain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dnode/src/dnodeMgmt.c b/src/dnode/src/dnodeMgmt.c index d971e3ad6d..7cc4bbcefa 100644 --- a/src/dnode/src/dnodeMgmt.c +++ b/src/dnode/src/dnodeMgmt.c @@ -721,7 +721,7 @@ int32_t dnodeGetDnodeId() { } void dnodeSendRedirectMsg(SRpcMsg *rpcMsg, bool forShell) { - SRpcConnInfo connInfo; + SRpcConnInfo connInfo = {0}; rpcGetConnInfo(rpcMsg->handle, &connInfo); SRpcIpSet ipSet = {0}; diff --git a/src/mnode/src/mnodeMain.c b/src/mnode/src/mnodeMain.c index 96dc700783..5e44ea5731 100644 --- a/src/mnode/src/mnodeMain.c +++ b/src/mnode/src/mnodeMain.c @@ -121,8 +121,8 @@ void mnodeCleanupSystem() { dnodeFreeMnodeWqueue(); dnodeFreeMnodeRqueue(); dnodeFreeMnodePqueue(); - mnodeCleanupTimer(); mnodeCleanupComponents(sizeof(tsMnodeComponents) / sizeof(tsMnodeComponents[0]) - 1); + mnodeCleanupTimer(); mPrint("mnode is cleaned up"); } -- GitLab