diff --git a/source/util/src/tconfig.c b/source/util/src/tconfig.c index 84e74b661298f3b7644fce5bc54aa056eb9dbf1d..32f7b23a471bb0fa07998f6082f02a454766aa59 100644 --- a/source/util/src/tconfig.c +++ b/source/util/src/tconfig.c @@ -1070,7 +1070,7 @@ int32_t cfgGetApollUrl(const char **envCmd, const char *envFile, char* apolloUrl TdFilePtr pFile = taosOpenFile(filepath, TD_FILE_READ | TD_FILE_STREAM); if (pFile != NULL) { while (!taosEOFFile(pFile)) { - _bytes = taosGetsFile(pFile, sizeof(line) - 1, &line); + _bytes = taosGetsFile(pFile, sizeof(line) - 1, line); if (_bytes <= 0) { break; }