[libgit2-glib] Fix return value for ggit_fetch_options_get_download_tags
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix return value for ggit_fetch_options_get_download_tags
- Date: Sat, 1 Aug 2015 08:14:45 +0000 (UTC)
commit 260a506bed59b193e23f63b97d6a6ab0505a2d9d
Author: Ting-Wei Lan <lantw src gnome org>
Date: Sat Aug 1 14:10:15 2015 +0800
Fix return value for ggit_fetch_options_get_download_tags
https://bugzilla.gnome.org/show_bug.cgi?id=753122
libgit2-glib/ggit-fetch-options.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-fetch-options.c b/libgit2-glib/ggit-fetch-options.c
index 6abffeb..5fae1b2 100644
--- a/libgit2-glib/ggit-fetch-options.c
+++ b/libgit2-glib/ggit-fetch-options.c
@@ -171,7 +171,7 @@ ggit_fetch_options_set_remote_callbacks (GgitFetchOptions *options,
GgitRemoteDownloadTagsType
ggit_fetch_options_get_download_tags (GgitFetchOptions *options)
{
- g_return_if_fail (options != NULL);
+ g_return_val_if_fail (options != NULL, GGIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED);
return (GgitRemoteDownloadTagsType)options->fetch_options.download_tags;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]