mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 12:14:16 +00:00
clone: fix -Wmaybe-uninitialized warning
This commit is contained in:
parent
aca2d26a5c
commit
ae59321fb8
@ -355,7 +355,7 @@ static int setup_remotes_and_fetch(
|
|||||||
const git_clone_options *options)
|
const git_clone_options *options)
|
||||||
{
|
{
|
||||||
int retcode = GIT_ERROR;
|
int retcode = GIT_ERROR;
|
||||||
git_remote *origin;
|
git_remote *origin = NULL;
|
||||||
|
|
||||||
/* Construct an origin remote */
|
/* Construct an origin remote */
|
||||||
if ((retcode = create_and_configure_origin(&origin, repo, url, options)) < 0)
|
if ((retcode = create_and_configure_origin(&origin, repo, url, options)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user