From: Joel Rosdahl Date: Sat, 16 Jul 2011 16:31:49 +0000 (+0200) Subject: config: Use path from conf struct X-Git-Tag: v3.2~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f80df1e8df3ed305e63b602ceeae64eddd38fca;p=thirdparty%2Fccache.git config: Use path from conf struct --- diff --git a/execute.c b/execute.c index 5e4767019..002508ede 100644 --- a/execute.c +++ b/execute.c @@ -234,8 +234,8 @@ find_executable(const char *name, const char *exclude_name) return x_strdup(name); } - path = getenv("CCACHE_PATH"); - if (!path) { + path = conf->path; + if (str_eq(path, "")) { path = getenv("PATH"); } if (!path) {