[libgit2-glib] Fix g_return with return value
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix g_return with return value
- Date: Fri, 22 Nov 2013 18:26:42 +0000 (UTC)
commit 30684d6ee695095e0f164ce0ba3c03f15d847f6f
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Fri Nov 22 19:25:19 2013 +0100
Fix g_return with return value
libgit2-glib/ggit-patch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-patch.c b/libgit2-glib/ggit-patch.c
index 127c5ba..34821f8 100644
--- a/libgit2-glib/ggit-patch.c
+++ b/libgit2-glib/ggit-patch.c
@@ -144,7 +144,7 @@ ggit_patch_new_from_blobs (GgitBlob *old_blob,
const git_diff_options *gdiff_options;
git_patch *patch;
- g_return_if_fail (error == NULL || *error == NULL);
+ g_return_val_if_fail (error == NULL || *error == NULL, NULL);
gdiff_options = _ggit_diff_options_get_diff_options (diff_options);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]