]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fixed "can't find compiler" bug
authorAndrew Tridgell <tridge@samba.org>
Sun, 16 Feb 2003 13:31:13 +0000 (14:31 +0100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 16 Feb 2003 13:31:13 +0000 (14:31 +0100)
fixed status message

ccache.c

index a050a5f3486f8155d1da1e3630cc9f18649473d2..c670ae1de5c9a79062978b8fe87fd1ccfee8dac2 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -512,7 +512,8 @@ static void find_compiler(int argc, char **argv)
        orig_args->argv[0] = find_executable(base, MYNAME);
 
        /* can't find the compiler! */
-       if (!argv[0]) {
+       if (!orig_args->argv[0]) {
+               stats_update(STATS_COMPILER);
                perror(base);
                exit(1);
        }
@@ -831,7 +832,7 @@ static int ccache_main(int argc, char *argv[])
 
                case 'c':
                        cleanup_all(cache_dir);
-                       printf("Cleaned cached\n");
+                       printf("Cleaned cache\n");
                        break;
 
                case 'C':