Commit 0ec118280c5e0177492d494c6f628f8aec63587c

Michael Schubert 2012-11-16T02:17:57

Fix -Wmaybe-uninitialized warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/config.c b/src/config.c
index 571a1f9..01a54ec 100644
--- a/src/config.c
+++ b/src/config.c
@@ -424,7 +424,7 @@ static int get_string(const char **out, git_config *cfg, const char *name)
 
 int git_config_get_bool(int *out, git_config *cfg, const char *name)
 {
-	const char *value;
+	const char *value = NULL;
 	int ret;
 
 	if ((ret = get_string(&value, cfg, name)) < 0)