[telepathy-gabble/master] make gabble_encode_jid() warn and return NULL if domain is NULL

Dafydd Harries dafydd.harries at collabora.co.uk
Wed Sep 2 14:46:52 PDT 2009


---
 src/util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/util.c b/src/util.c
index 20803f8..95b1657 100644
--- a/src/util.c
+++ b/src/util.c
@@ -643,6 +643,8 @@ gabble_encode_jid (
 {
   gchar *tmp, *ret;
 
+  g_return_val_if_fail (domain != NULL, NULL);
+
   if (node != NULL && resource != NULL)
     tmp = g_strdup_printf ("%s@%s/%s", node, domain, resource);
   else if (node != NULL)
-- 
1.5.6.5



More information about the telepathy-commits mailing list