Commit 7382551ff75fd7890752d3c64de85dc99115449e

Michael Schubert 2012-12-22T16:29:59

Fix -Wmaybe-uninitialized warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/fetchhead.c b/src/fetchhead.c
index 14878fe..a76ef2f 100644
--- a/src/fetchhead.c
+++ b/src/fetchhead.c
@@ -237,7 +237,7 @@ int git_repository_fetchhead_foreach(git_repository *repo,
 	const char *ref_name;
 	git_oid oid;
 	const char *remote_url;
-	unsigned int is_merge;
+	unsigned int is_merge = 0;
 	char *buffer, *line;
 	size_t line_num = 0;
 	int error = 0;