]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use x_strdup instead of strdup
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Jun 2010 19:56:59 +0000 (21:56 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Jun 2010 19:56:59 +0000 (21:56 +0200)
ccache.c

index e4a2e2c8fb3b7c65a549c13b35223bcbb870bb17..ac5210d5bd87030197d9239a2f64e30a0229bd8c 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1244,7 +1244,7 @@ static void find_compiler(int argc, char **argv)
 
        /* support user override of the compiler */
        if ((path=getenv("CCACHE_CC"))) {
-               base = strdup(path);
+               base = x_strdup(path);
        }
 
        compiler = find_executable(base, MYNAME);