From: Joel Rosdahl Date: Sat, 16 Jul 2011 20:59:14 +0000 (+0200) Subject: config: Use temporary_dir from conf struct X-Git-Tag: v3.2~213 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e1c72810f00ab5b2d988d164b17f5e6c8594621;p=thirdparty%2Fccache.git config: Use temporary_dir from conf struct --- diff --git a/ccache.c b/ccache.c index e3a9d3498..8f23a502c 100644 --- 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;