From f34645e616598915416d06d3609d40e00de56731 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Feb 2003 14:31:13 +0100 Subject: [PATCH] fixed "can't find compiler" bug fixed status message --- ccache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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': -- 2.47.2