From 6bf4382fefc32ee0c213a2e1671ea3fc6311c70a Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 19 Aug 2018 08:50:19 +0200 Subject: =?UTF-8?q?Fix=20=E2=80=9Cclang=20analyze=E2=80=9D=20false=20posit?= =?UTF-8?q?ive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ccache.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ccache.c b/src/ccache.c index e3b8886f..f363e948 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -781,10 +781,7 @@ process_preprocessed_file(struct mdfour *hash, const char *path, bool pump) included_files = create_hashtable(1000, hash_from_string, strings_equal); } - char *cwd = NULL; - if (!conf->hash_dir) { - cwd = gnu_getcwd(); - } + char *cwd = gnu_getcwd(); // Bytes between p and q are pending to be hashed. char *p = data; -- cgit v1.2.1