diff options
author | Matthias Kramm <kramm@quiss.org> | 2012-02-14 16:09:48 -0800 |
---|---|---|
committer | Matthias Kramm <kramm@quiss.org> | 2012-02-14 16:10:03 -0800 |
commit | 005bc6963a8ed0a3768efc2159fbd7fc0c60ea35 (patch) | |
tree | d70eabf1797925176f6b81f014b39fc304cbba8f | |
parent | 8e4b01d1c6415520abbd719e35b212af564ac355 (diff) |
allow to change the temporary directory on Unix
-rwxr-xr-x | lib/os.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -187,7 +187,8 @@ static char* getTempDir() if(!dir) dir = getenv("temp"); if(!dir) dir = "C:\\"; #else - char* dir = "/tmp/"; + char*dir = getenv("SWFTOOLS_TMP"); + if(!dir) dir = "/tmp/"; #endif return dir; } |