From: Ryan Lortie Date: Mon, 15 Aug 2011 14:42:35 +0000 (-0400) Subject: g_settings_bind: add some g_return checks X-Git-Tag: 2.29.16~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b0171a8080c233f85c1d66fa6df6d75640b37e5;p=platform%2Fupstream%2Fglib.git g_settings_bind: add some g_return checks https://bugzilla.gnome.org/show_bug.cgi?id=636405 --- 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);