diff --git a/source/dnode/mgmt/exe/dmMain.c b/source/dnode/mgmt/exe/dmMain.c index d3236a7940..5ed6a499e6 100644 --- a/source/dnode/mgmt/exe/dmMain.c +++ b/source/dnode/mgmt/exe/dmMain.c @@ -358,7 +358,7 @@ int mainWindows(int argc, char **argv) { #if defined(LINUX) if (global.memDbg) { - int32_t code = taosMemoryDbgInit(); + code = taosMemoryDbgInit(); if (code) { printf("failed to init memory dbg, error:%s\n", tstrerror(code)); return code;