From: Andrew Tridgell Date: Sun, 16 Feb 2003 13:31:13 +0000 (+0100) Subject: fixed "can't find compiler" bug X-Git-Tag: v2.2~4 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f34645e616598915416d06d3609d40e00de56731;p=thirdparty%2Fccache.git fixed "can't find compiler" bug fixed status message --- diff --git a/ccache.c b/ccache.c index a050a5f34..c670ae1de 100644 --- 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':