[libgit2-glib] push: missing value return on error



commit c8f313104df62c7c0bedf4f1722dc26619e857a6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jan 21 09:34:50 2014 +0100

    push: missing value return on error

 libgit2-glib/ggit-push.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-push.c b/libgit2-glib/ggit-push.c
index f702176..245d974 100644
--- a/libgit2-glib/ggit-push.c
+++ b/libgit2-glib/ggit-push.c
@@ -269,8 +269,8 @@ ggit_push_finish (GgitPush          *push,
 
        PushProgressInfo info = {0,};
 
-       g_return_if_fail (GGIT_IS_PUSH (push));
-       g_return_if_fail (error == NULL || *error == NULL);
+       g_return_val_if_fail (GGIT_IS_PUSH (push), FALSE);
+       g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
        info.progress = progress;
        info.error = error;


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