From: Peng Huang Date: Fri, 15 Jan 2010 06:55:25 +0000 (+0800) Subject: Check argument to avoid crash X-Git-Tag: 1.2.99.20100202~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbc992ba0bab3253032fbcd9fc1a477dec80b855;p=platform%2Fupstream%2Fibus.git Check argument to avoid crash --- diff --git a/gconf/config.c b/gconf/config.c index f03d368a..b3662fe8 100644 --- a/gconf/config.c +++ b/gconf/config.c @@ -80,6 +80,9 @@ _value_changed_cb (GConfClient *client, gchar *p, *section, *name; GValue v = { 0 }; + g_return_if_fail (key != NULL); + g_return_if_fail (value != NULL); + p = g_strdup (key); section = p + sizeof (GCONF_PREFIX); name = rindex (p, '/') + 1;