[gnome-builder] prefs: return zero count in preconditions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] prefs: return zero count in preconditions
- Date: Sun, 14 Dec 2014 10:11:23 +0000 (UTC)
commit 4a363c99e1e2074559d019d7b1541183308ef309
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 14 02:10:47 2014 -0800
prefs: return zero count in preconditions
src/preferences/gb-preferences-page.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/preferences/gb-preferences-page.c b/src/preferences/gb-preferences-page.c
index dee8693..aef24e5 100644
--- a/src/preferences/gb-preferences-page.c
+++ b/src/preferences/gb-preferences-page.c
@@ -60,7 +60,7 @@ gb_preferences_page_set_keywords (GbPreferencesPage *page,
guint count = 0;
guint i;
- g_return_if_fail (GB_IS_PREFERENCES_PAGE (page));
+ g_return_val_if_fail (GB_IS_PREFERENCES_PAGE (page), 0);
if (!keywords || (g_strv_length ((gchar **)keywords) == 0))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]