[totem] main: Fix "Non-void function should return a value"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix "Non-void function should return a value"
- Date: Fri, 31 Jan 2014 10:55:52 +0000 (UTC)
commit 6001cfd976ac5ee09626eca63ac964187b76f851
Author: Ting-Wei Lan <lantw44 gmail com>
Date: Fri Jan 31 10:06:00 2014 +0000
main: Fix "Non-void function should return a value"
https://bugzilla.gnome.org/show_bug.cgi?id=723351
src/totem-search-entry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-search-entry.c b/src/totem-search-entry.c
index ab7d507..71346e6 100644
--- a/src/totem-search-entry.c
+++ b/src/totem-search-entry.c
@@ -370,8 +370,8 @@ totem_search_entry_set_selected_id (TotemSearchEntry *self,
GList *children, *l;
gboolean ret = FALSE;
- g_return_if_fail (TOTEM_IS_SEARCH_ENTRY (self));
- g_return_if_fail (id != NULL);
+ g_return_val_if_fail (TOTEM_IS_SEARCH_ENTRY (self), FALSE);
+ g_return_val_if_fail (id != NULL, FALSE);
children = gtk_container_get_children (GTK_CONTAINER (self->priv->listbox));
for (l = children; l != NULL; l = l->next) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]