summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 4fb161169..571a1f998 100644
--- a/src/config.c
+++ b/src/config.c
@@ -436,7 +436,7 @@ int git_config_get_bool(int *out, git_config *cfg, const char *name)
int git_config_get_string(const char **out, git_config *cfg, const char *name)
{
int ret;
- const char *str;
+ const char *str = NULL;
if ((ret = get_string(&str, cfg, name)) < 0)
return ret;