[glib/wip/menus-rebase2: 64/64] gapplication: Fix return with no value in _get_menu()
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/menus-rebase2: 64/64] gapplication: Fix return with no value in _get_menu()
- Date: Fri, 18 Nov 2011 16:30:48 +0000 (UTC)
commit cdcaf28557263535c5204f1989661bbb3f41b684
Author: Colin Walters <walters verbum org>
Date: Fri Nov 18 15:17:43 2011 +0000
gapplication: Fix return with no value in _get_menu()
gio/gapplication.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 17d39b9..092c919 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -467,7 +467,7 @@ g_application_set_menu (GApplication *application,
GMenuModel *
g_application_get_menu (GApplication *application)
{
- g_return_if_fail (G_IS_APPLICATION (application));
+ g_return_val_if_fail (G_IS_APPLICATION (application), NULL);
return application->priv->menu;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]