[td-4748]<fix>:fix the temp file generate buf on windows platform.
This commit is contained in:
parent
3a740a58bb
commit
6cd5224d69
|
@ -48,9 +48,10 @@ void osInit() {
|
|||
strcpy(tsOsName, "Windows");
|
||||
|
||||
const char *tmpDir = getenv("tmp");
|
||||
if (tmpDir != NULL) {
|
||||
if (tmpDir == NULL) {
|
||||
tmpDir = getenv("temp");
|
||||
}
|
||||
|
||||
if (tmpDir != NULL) {
|
||||
strcpy(tsTempDir, tmpDir);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue