]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
config: Use temporary_dir from conf struct
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Jul 2011 20:59:14 +0000 (22:59 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 20 Jul 2011 21:31:37 +0000 (23:31 +0200)
ccache.c

index e3a9d34984e9821918c5780c99f64c4a6c44d4b8..8f23a502c6fab0f41957c689b2820334e19546fd 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -252,8 +252,8 @@ temp_dir()
 {
        static char* path = NULL;
        if (path) return path;  /* Memoize */
-       path = getenv("CCACHE_TEMPDIR");
-       if (!path) {
+       path = conf->temporary_dir;
+       if (str_eq(path, "")) {
                path = format("%s/tmp", conf->cache_dir);
        }
        return path;