未验证 提交 ad0505b2 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #20653 from taosdata/fix/TS-2987

fix: fix cfg load enviroment variables crash when environ is NULL
......@@ -637,6 +637,8 @@ int32_t cfgLoadFromEnvVar(SConfig *pConfig) {
int32_t code = 0;
char **pEnv = environ;
line[1023] = 0;
if (pEnv == NULL) return 0;
while (*pEnv != NULL) {
name = value = value2 = value3 = NULL;
olen = vlen = vlen2 = vlen3 = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册