comparison libpurple/protocols/jabber/jingle/iceudp.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
comparison
equal deleted inserted replaced
32784:5aca97a40e53 32785:c9da7f5fbd0e
200 200
201 static void 201 static void
202 jingle_iceudp_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) 202 jingle_iceudp_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
203 { 203 {
204 JingleIceUdp *iceudp; 204 JingleIceUdp *iceudp;
205
206 g_return_if_fail(object != NULL);
205 g_return_if_fail(JINGLE_IS_ICEUDP(object)); 207 g_return_if_fail(JINGLE_IS_ICEUDP(object));
206 208
207 iceudp = JINGLE_ICEUDP(object); 209 iceudp = JINGLE_ICEUDP(object);
208 210
209 switch (prop_id) { 211 switch (prop_id) {
223 225
224 static void 226 static void
225 jingle_iceudp_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) 227 jingle_iceudp_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
226 { 228 {
227 JingleIceUdp *iceudp; 229 JingleIceUdp *iceudp;
230
231 g_return_if_fail(object != NULL);
228 g_return_if_fail(JINGLE_IS_ICEUDP(object)); 232 g_return_if_fail(JINGLE_IS_ICEUDP(object));
229 233
230 iceudp = JINGLE_ICEUDP(object); 234 iceudp = JINGLE_ICEUDP(object);
231 235
232 switch (prop_id) { 236 switch (prop_id) {