Commit ae59321fb86d080d0fd17e8c9a57c855914bcd32

Michael Schubert 2013-05-10T14:31:58

clone: fix -Wmaybe-uninitialized warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/clone.c b/src/clone.c
index 38c0d40..2ff119e 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -355,7 +355,7 @@ static int setup_remotes_and_fetch(
 		const git_clone_options *options)
 {
 	int retcode = GIT_ERROR;
-	git_remote *origin;
+	git_remote *origin = NULL;
 
 	/* Construct an origin remote */
 	if ((retcode = create_and_configure_origin(&origin, repo, url, options)) < 0)