From e42f013eaccb26053e2748514ad694390b3afea9 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Mon, 29 Jul 2024 22:03:50 +0800 Subject: [PATCH] Update tglobal.c --- source/common/src/tglobal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 3b6daecdc6..ebaf1041c9 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -396,9 +396,9 @@ struct SConfig *taosGetCfg() { return tsCfg; } static int32_t taosLoadCfg(SConfig *pCfg, const char **envCmd, const char *inputCfgDir, const char *envFile, char *apolloUrl) { + int32_t code = 0; char cfgDir[PATH_MAX] = {0}; char cfgFile[PATH_MAX + 100] = {0}; - int32_t code = 0; TAOS_CHECK_RETURN(taosExpandDir(inputCfgDir, cfgDir, PATH_MAX)); char lastC = cfgDir[strlen(cfgDir) - 1];