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:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-02 16:04:44 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-02 16:04:44 +0400
commit0e0cf78773bea0d06298ba3bf981a3be839041df (patch)
tree4b879238df61eccc2f048fe51e10fce421967e26 /src/clone.c
parentffc97d51264f8af435ccf52d33a62a6925b174c9 (diff)
clone: put the callbacks struct directly in the clone options
There's no need for this to be a pointer to somewhere else.
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c
index 1af6e393f..f3e365c07 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -315,8 +315,7 @@ static int create_and_configure_origin(
if (options->ignore_cert_errors)
git_remote_check_cert(origin, 0);
- if (options->remote_callbacks &&
- (error = git_remote_set_callbacks(origin, options->remote_callbacks)) < 0)
+ if ((error = git_remote_set_callbacks(origin, &options->remote_callbacks)) < 0)
goto on_error;
if ((error = git_remote_save(origin)) < 0)