Skip to content

Commit ae59321

Browse files
committed
clone: fix -Wmaybe-uninitialized warning
1 parent aca2d26 commit ae59321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int setup_remotes_and_fetch(
355355
const git_clone_options *options)
356356
{
357357
int retcode = GIT_ERROR;
358-
git_remote *origin;
358+
git_remote *origin = NULL;
359359

360360
/* Construct an origin remote */
361361
if ((retcode = create_and_configure_origin(&origin, repo, url, options)) < 0)

0 commit comments

Comments
 (0)