Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jingle/transport.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 | 4b101cad58e7 |
children |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/transport.c Fri Oct 21 14:38:35 2011 +0000 +++ b/libpurple/protocols/jabber/jingle/transport.c Sat Oct 22 21:55:51 2011 +0000 @@ -108,6 +108,7 @@ static void jingle_transport_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { + g_return_if_fail(object != NULL); g_return_if_fail(JINGLE_IS_TRANSPORT(object)); switch (prop_id) { @@ -120,6 +121,7 @@ static void jingle_transport_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { + g_return_if_fail(object != NULL); g_return_if_fail(JINGLE_IS_TRANSPORT(object)); switch (prop_id) { @@ -170,6 +172,7 @@ xmlnode * jingle_transport_to_xml(JingleTransport *transport, xmlnode *content, JingleActionType action) { + g_return_val_if_fail(transport != NULL, NULL); g_return_val_if_fail(JINGLE_IS_TRANSPORT(transport), NULL); return JINGLE_TRANSPORT_GET_CLASS(transport)->to_xml(transport, content, action); }