mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +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:
parent
e40fa94421
commit
9cc96c9646
|
@ -357,7 +357,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));
|
||||
config_exclusive_filename = user_config;
|
||||
|
|
Loading…
Reference in a new issue