[libgit2-glib] Allow NULL for options



commit d71d7865dad384ce1fca4f48cc6f8f4c4430cc26
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat Jun 28 08:58:07 2014 +0200

    Allow NULL for options

 libgit2-glib/ggit-diff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff.c b/libgit2-glib/ggit-diff.c
index 8058857..9de2502 100644
--- a/libgit2-glib/ggit-diff.c
+++ b/libgit2-glib/ggit-diff.c
@@ -793,7 +793,7 @@ ggit_diff_find_similar (GgitDiff             *diff,
        gint ret;
 
        g_return_val_if_fail (GGIT_IS_DIFF (diff), FALSE);
-       g_return_val_if_fail (GGIT_IS_DIFF_FIND_OPTIONS (options), FALSE);
+       g_return_val_if_fail (options == NULL || GGIT_IS_DIFF_FIND_OPTIONS (options), FALSE);
        g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
        ret = git_diff_find_similar (_ggit_native_get (diff),


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