[Telepathy-commits] [telepathy-salut/master] data_received_cb: assert that the transport is not NULL
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Dec 17 07:53:22 PST 2008
---
src/tube-stream.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 054e7b9..dadd8e5 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1372,11 +1372,7 @@ data_received_cb (GibberBytestreamIface *bytestream,
DEBUG ("received %" G_GSIZE_FORMAT " bytes from bytestream", data->len);
transport = g_hash_table_lookup (priv->bytestream_to_transport, bytestream);
- if (transport == NULL)
- {
- DEBUG ("no transport associated with the bytestream");
- return;
- }
+ g_assert (transport != NULL);
if (!gibber_transport_send (transport, (const guint8 *) data->str, data->len,
&error))
--
1.5.6.5
More information about the Telepathy-commits
mailing list