]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Handle empty arguments correctly
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 17 Jan 2010 16:40:22 +0000 (17:40 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 25 Jan 2010 20:33:09 +0000 (21:33 +0100)
ccache.c

index 6ed12f20d63fa131fc5e5c18d6f99eabf84cfaae..80bfee5dd3aff4b278281044f8022c24e3fd6bc2 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1124,7 +1124,7 @@ static void process_args(int argc, char **argv)
                }
 
                /* these are too hard */
-               if (argv[i][0] == '@' ||
+               if (strncmp(argv[i], "@", 1) == 0 ||
                    strcmp(argv[i], "-fbranch-probabilities") == 0 ||
                    strcmp(argv[i], "--coverage") == 0 ||
                    strcmp(argv[i], "-fprofile-arcs") == 0 ||