[glib] g_settings_bind: add some g_return checks
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] g_settings_bind: add some g_return checks
- Date: Mon, 15 Aug 2011 14:43:49 +0000 (UTC)
commit 2b0171a8080c233f85c1d66fa6df6d75640b37e5
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Aug 15 10:42:35 2011 -0400
g_settings_bind: add some g_return checks
https://bugzilla.gnome.org/show_bug.cgi?id=636405
gio/gsettings.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 399f4d2..f9e476b 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -2787,6 +2787,9 @@ g_settings_bind_with_mapping (GSettings *settings,
GQuark binding_quark;
g_return_if_fail (G_IS_SETTINGS (settings));
+ g_return_if_fail (key != NULL);
+ g_return_if_fail (G_IS_OBJECT (object));
+ g_return_if_fail (property != NULL);
g_return_if_fail (~flags & G_SETTINGS_BIND_INVERT_BOOLEAN);
objectclass = G_OBJECT_GET_CLASS (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]