From: Joel Rosdahl Date: Wed, 17 Feb 2016 19:35:01 +0000 (+0100) Subject: Fix cppcheck style suggestions X-Git-Tag: v3.3~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2f65c6a585e5aebf825181826309588201638e2;p=thirdparty%2Fccache.git Fix cppcheck style suggestions --- diff --git a/ccache.c b/ccache.c index 22df9c0b5..370c68cbd 100644 --- 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);