]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix cppcheck style suggestions
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Feb 2016 19:35:01 +0000 (20:35 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Feb 2016 19:46:53 +0000 (20:46 +0100)
ccache.c

index 22df9c0b5cbb7d65ec8345857b0382ad64ec857f..370c68cbda968c48d182fb94455d5da47bb5008a 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1497,8 +1497,8 @@ calculate_common_hash(struct args *args, struct mdfour *hash)
                if (debug_prefix_map) {
                        char *map = debug_prefix_map;
                        char *sep = strchr(map, '=');
-                       char *dir, *old, *new;
                        if (sep) {
+                               char *dir, *old, *new;
                                old = x_strndup(map, sep - map);
                                new = x_strdup(sep + 1);
                                cc_log("Relocating debuginfo cwd %s, from %s to %s", cwd, old, new);