未验证 提交 51b975f9 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #6712 from taosdata/fix/query

[td-4748]<fix>:fix the temp file generate bug on windows.
...@@ -48,9 +48,10 @@ void osInit() { ...@@ -48,9 +48,10 @@ void osInit() {
strcpy(tsOsName, "Windows"); strcpy(tsOsName, "Windows");
const char *tmpDir = getenv("tmp"); const char *tmpDir = getenv("tmp");
if (tmpDir != NULL) { if (tmpDir == NULL) {
tmpDir = getenv("temp"); tmpDir = getenv("temp");
} }
if (tmpDir != NULL) { if (tmpDir != NULL) {
strcpy(tsTempDir, tmpDir); strcpy(tsTempDir, tmpDir);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册