From 301ac18a3d4432cacd45b43624f554bd6f8d5d15 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Fri, 19 Aug 2022 14:21:47 +0800 Subject: [PATCH] os: fix flashing black console error --- source/util/src/tconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util/src/tconfig.c b/source/util/src/tconfig.c index 84e74b6612..32f7b23a47 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; } -- GitLab