Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2013-05-10 16:31:58 +0400
committerMichael Schubert <schu@schu.io>2013-05-10 16:46:14 +0400
commitae59321fb86d080d0fd17e8c9a57c855914bcd32 (patch)
tree74e610489aed42b7d57559c0afe0a9ee37f9c340 /src/clone.c
parentaca2d26a5c12a225572fbf51a094aa2bb88ad913 (diff)
clone: fix -Wmaybe-uninitialized warning
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c
index 38c0d409e..2ff119ee3 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)