[Telepathy-commits] [telepathy-gabble/master] GabbleMediaFactory: assert that the channel has a creator
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:53 PDT 2008
20080722141646-53eee-029457b4f2c643b88f6f4bd2a6501b89a9205fee.gz
---
src/media-factory.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/media-factory.c b/src/media-factory.c
index f673117..d866f63 100644
--- a/src/media-factory.c
+++ b/src/media-factory.c
@@ -479,7 +479,8 @@ new_media_channel (GabbleMediaFactory *fac,
GabbleMediaChannel *chan;
gchar *object_path;
- g_assert (GABBLE_IS_MEDIA_FACTORY (fac));
+ g_return_val_if_fail (GABBLE_IS_MEDIA_FACTORY (fac), NULL);
+ g_return_val_if_fail (creator != 0, NULL);
priv = GABBLE_MEDIA_FACTORY_GET_PRIVATE (fac);
conn = (TpBaseConnection *) priv->conn;
--
1.5.6.3
More information about the Telepathy-commits
mailing list