]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don't crash on unknown extensions
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 1 Jun 2010 19:04:05 +0000 (21:04 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 1 Jun 2010 19:04:05 +0000 (21:04 +0200)
ccache.c

index cc5ba1095602561f7d266a3863dedb41e7f4fcf5..31fa59e143201c1671a46ede1902234dc9f13fa5 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -523,6 +523,9 @@ static const char *preprocessed_language(const char *language, int *direct_i)
 {
        int i;
 
+       if (!language) {
+               return NULL;
+       }
        if (direct_i) {
                *direct_i = 0;
        }