Merge pull request #6712 from taosdata/fix/query
[td-4748]<fix>:fix the temp file generate bug on windows.
This commit is contained in:
commit
51b975f964
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue