[Telepathy-commits] [telepathy-glib/master] tp_g_hash_table_update: add assertion on target != source
Alban Crequy
alban.crequy at collabora.co.uk
Wed Sep 10 04:23:19 PDT 2008
---
telepathy-glib/util.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/util.c b/telepathy-glib/util.c
index 307db35..4f70802 100644
--- a/telepathy-glib/util.c
+++ b/telepathy-glib/util.c
@@ -158,6 +158,7 @@ tp_g_hash_table_update (GHashTable *target,
g_return_if_fail (target != NULL);
g_return_if_fail (source != NULL);
+ g_return_if_fail (target != source);
g_hash_table_foreach (source, _tp_g_hash_table_update_helper, &data);
}
--
1.5.6.3
More information about the Telepathy-commits
mailing list