]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix a segv when no -o is used
authorAndrew Tridgell <tridge@samba.org>
Tue, 7 Jan 2003 21:16:50 +0000 (22:16 +0100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 7 Jan 2003 21:16:50 +0000 (22:16 +0100)
ccache.c

index f55f74d0f16f69444d8fc3146e7bc399468abc21..b4429e53d2a22724f822b27957e69e8fb465062b 100644 (file)
--- 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();
        }