os: fix flashing black console error

This commit is contained in:
afwerar 2022-08-19 16:48:34 +08:00
parent 44919ef147
commit ad2708d370
1 changed files with 2 additions and 2 deletions

View File

@ -639,7 +639,7 @@ int32_t cfgLoadFromEnvVar(SConfig *pConfig) {
olen = vlen = vlen2 = vlen3 = 0;
strncpy(line, *pEnv, sizeof(line)-1);
(*pEnv)++;
pEnv++;
taosEnvToCfg(line, line);
paGetToken(line, &name, &olen);
@ -1037,7 +1037,7 @@ int32_t cfgGetApollUrl(const char **envCmd, const char *envFile, char* apolloUrl
line[1023] = 0;
while(*pEnv != NULL) {
strncpy(line, *pEnv, sizeof(line)-1);
(*pEnv)++;
pEnv++;
if (strncmp(line, "TAOS_APOLLO_URL", 14) == 0) {
char *p = strchr(line, '=');
if (p != NULL) {