[libgit2-glib] Correctly initialize git_remote_callbacks



commit a4eeda0a4d1f1f9492aed6b65e81dc666e87be40
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Nov 23 11:42:17 2013 +0100

    Correctly initialize git_remote_callbacks

 libgit2-glib/ggit-remote-callbacks.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgit2-glib/ggit-remote-callbacks.c b/libgit2-glib/ggit-remote-callbacks.c
index 2202469..d9ed1b4 100644
--- a/libgit2-glib/ggit-remote-callbacks.c
+++ b/libgit2-glib/ggit-remote-callbacks.c
@@ -270,8 +270,12 @@ update_tips_wrap (const char    *refname,
 static void
 ggit_remote_callbacks_init (GgitRemoteCallbacks *self)
 {
+       git_remote_callbacks gcallbacks = GIT_REMOTE_CALLBACKS_INIT;
+
        self->priv = GGIT_REMOTE_CALLBACKS_GET_PRIVATE (self);
 
+       self->priv->native = gcallbacks;
+
        self->priv->native.progress = progress_wrap;
        self->priv->native.completion = completion_wrap;
        self->priv->native.credentials = credentials_wrap;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]