summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Yhuel <loic.yhuel@gmail.com>2019-04-25 21:19:10 +0200
committerJoel Rosdahl <joel@rosdahl.net>2019-04-25 21:19:10 +0200
commit5a84ff25cbc0c43ad46367b89ce053f2111e8cba (patch)
tree6c5076d8f8d8bfb7c6e62a9c997b04e3f127ff7b
parentcb492b98bea4b78bd7727c5a6253be2da060050e (diff)
downloadccache-5a84ff25cbc0c43ad46367b89ce053f2111e8cba.tar.gz
Fix NULL argument in profile directory trace (#395)
With -fprofile-*=path, we currently print : "Setting profile directory to (null)". This fixes the build with gcc 9, which failed with : error: ‘%s’ directive argument is null [-Werror=format-overflow=]
-rw-r--r--src/ccache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ccache.c b/src/ccache.c
index ca524952..cb8b3a72 100644
--- a/src/ccache.c
+++ b/src/ccache.c
@@ -2972,7 +2972,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
result = false;
goto out;
} else if (arg_profile_dir) {
- cc_log("Setting profile directory to %s", profile_dir);
+ cc_log("Setting profile directory to %s", arg_profile_dir);
profile_dir = x_strdup(arg_profile_dir);
}
continue;