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

index 5e4767019673eba200ac0879cc8ea6cc6f708361..002508edef67406369d3a3668bd1ed51144a12fa 100644 (file)
--- 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) {