[telepathy-gabble/telepathy-gabble-0.8] GabbleFTManager: die noisily if someone breaks the assumption in GabbleConnection that this code relies on

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Nov 26 06:18:31 PST 2009


As per alsuren's review.
---
 src/ft-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/ft-manager.c b/src/ft-manager.c
index 81d55bb..84ec6ef 100644
--- a/src/ft-manager.c
+++ b/src/ft-manager.c
@@ -739,12 +739,13 @@ gabble_ft_manager_caps_diff (GabbleCapsChannelManager *manager,
 
 static void
 gabble_ft_manager_update_caps (GabbleCapsChannelManager *manager,
-    gpointer specific_caps_out G_GNUC_UNUSED,
+    gpointer specific_caps_out,
     gpointer specific_caps_in G_GNUC_UNUSED)
 {
   /* We don't need to do anything. If @out is NULL, we won't be called, and
    * @in will be copied instead; if @out is non-NULL, it means FT is supported,
    * so it doesn't matter what @in was. */
+  g_return_if_fail (specific_caps_out != NULL);
 }
 
 static void
-- 
1.5.6.5



More information about the telepathy-commits mailing list