From ae59321fb86d080d0fd17e8c9a57c855914bcd32 Mon Sep 17 00:00:00 2001 From: Michael Schubert Date: Fri, 10 May 2013 14:31:58 +0200 Subject: [PATCH] clone: fix -Wmaybe-uninitialized warning --- src/clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)