[Telepathy-commits] [telepathy-gabble/master] data_received_cb: assert that the transport is not NULL

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Dec 17 08:08:17 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 b19f0e2..e06df30 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1345,11 +1345,7 @@ data_received_cb (GabbleBytestreamIface *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