Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jingle/rawudp.c @ 32785:c9da7f5fbd0e
jabber: Add a few extra g_return_if_fails to the Jingle code
These are entirely superfluous (the JINGLE_IS_* macros check
for non-nullness), but they silence some false-positives from clang
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 22 Oct 2011 21:55:51 +0000 |
parents | a8cc50c2279f |
children |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/rawudp.c Fri Oct 21 14:38:35 2011 +0000 +++ b/libpurple/protocols/jabber/jingle/rawudp.c Sat Oct 22 21:55:51 2011 +0000 @@ -174,6 +174,8 @@ jingle_rawudp_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { JingleRawUdp *rawudp; + + g_return_if_fail(object != NULL); g_return_if_fail(JINGLE_IS_RAWUDP(object)); rawudp = JINGLE_RAWUDP(object); @@ -197,6 +199,8 @@ jingle_rawudp_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { JingleRawUdp *rawudp; + + g_return_if_fail(object != NULL); g_return_if_fail(JINGLE_IS_RAWUDP(object)); rawudp = JINGLE_RAWUDP(object);