[gnome-maps] build: Fix "non-void function should return a value"
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] build: Fix "non-void function should return a value"
- Date: Tue, 17 Feb 2015 19:32:28 +0000 (UTC)
commit d8a000142619e3a6114f8438577a318f4665e46e
Author: Ting-Wei Lan <lantw src gnome org>
Date: Mon Feb 9 19:33:25 2015 +0800
build: Fix "non-void function should return a value"
https://bugzilla.gnome.org/show_bug.cgi?id=744613
lib/maps-contact-store.c | 2 +-
lib/maps-contact.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/maps-contact-store.c b/lib/maps-contact-store.c
index 2e0b071..9045d12 100644
--- a/lib/maps-contact-store.c
+++ b/lib/maps-contact-store.c
@@ -303,7 +303,7 @@ maps_contact_store_load (MapsContactStore *store)
GList *
maps_contact_store_get_contacts (MapsContactStore *store)
{
- g_return_if_fail (MAPS_IS_CONTACT_STORE (store));
+ g_return_val_if_fail (MAPS_IS_CONTACT_STORE (store), NULL);
return store->priv->list;
}
diff --git a/lib/maps-contact.c b/lib/maps-contact.c
index b681c4b..06ccf8f 100644
--- a/lib/maps-contact.c
+++ b/lib/maps-contact.c
@@ -241,7 +241,7 @@ maps_contact_add_place (MapsContact *contact,
GList *
maps_contact_get_places (MapsContact *contact)
{
- g_return_if_fail (MAPS_IS_CONTACT (contact));
+ g_return_val_if_fail (MAPS_IS_CONTACT (contact), NULL);
return contact->priv->places;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]