mirror of
https://github.com/git/git.git
synced 2026-01-17 06:13:11 +00:00
config.c: trivial fix for compile-time warning
The warning ("builtin/config.c:351: warning: initialization
discards qualifiers from pointer target type") was introduced
in commit 6754497c.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
e626201283
commit
c8d7577126
@@ -379,7 +379,7 @@ int cmd_config(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
if (use_global_config) {
|
||||
char *home = get_home_directory();
|
||||
const char *home = get_home_directory();
|
||||
if (home) {
|
||||
char *user_config = xstrdup(mkpath("%s/.gitconfig", home));
|
||||
given_config_file = user_config;
|
||||
|
||||
Reference in New Issue
Block a user