Update tglobal.c

This commit is contained in:
Cary Xu 2024-07-29 22:03:50 +08:00 committed by GitHub
parent 155c693326
commit e42f013eac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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];