From: Andrew Tridgell Date: Tue, 7 Jan 2003 21:16:50 +0000 (+0100) Subject: fix a segv when no -o is used X-Git-Tag: v2.1~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=06cac7bddaa614b8321825dc262de8b3b093e923;p=thirdparty%2Fccache.git fix a segv when no -o is used --- diff --git a/ccache.c b/ccache.c index f55f74d0f..b4429e53d 100644 --- a/ccache.c +++ b/ccache.c @@ -738,7 +738,7 @@ static void process_args(int argc, char **argv) /* don't try to second guess the compilers heuristics for stdout handling */ - if (strcmp(output_file, "-") == 0) { + if (output_file && strcmp(output_file, "-") == 0) { stats_update(STATS_OUTSTDOUT); failed(); }