diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-10-01 20:19:06 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-10-01 20:19:06 +0800 |
commit | 5781c771dae7315198b733d6024fca4b82a82a1e (patch) | |
tree | 4098c84c8db351482441a64a42c6234fde7a2c65 /libempathy | |
parent | 8ceafd628952e29e763b205d31fcd30549dcf637 (diff) | |
download | gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.tar gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.tar.gz gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.tar.bz2 gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.tar.lz gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.tar.xz gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.tar.zst gsoc2013-empathy-5781c771dae7315198b733d6024fca4b82a82a1e.zip |
2007-10-01 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-accounts-dialog.c:
* libempathy/empathy-utils.c: Add some sanity checks. Fixes bug #463051.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@348 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-utils.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index e90521b05..e354e940d 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -369,16 +369,21 @@ empathy_xml_node_find_child_prop_value (xmlNodePtr node, guint empathy_account_hash (gconstpointer key) { + g_return_val_if_fail (MC_IS_ACCOUNT (key), 0); + return g_str_hash (mc_account_get_unique_name (MC_ACCOUNT (key))); } gboolean empathy_account_equal (gconstpointer a, - gconstpointer b) + gconstpointer b) { const gchar *name_a; const gchar *name_b; + g_return_val_if_fail (MC_IS_ACCOUNT (a), FALSE); + g_return_val_if_fail (MC_IS_ACCOUNT (b), FALSE); + name_a = mc_account_get_unique_name (MC_ACCOUNT (a)); name_b = mc_account_get_unique_name (MC_ACCOUNT (b)); @@ -476,6 +481,8 @@ empathy_call_contact (EmpathyContact *contact) EmpathyTpGroup *group; GError *error; + g_return_if_fail (EMPATHY_IS_CONTACT (contact)); + /* StreamedMedia channels must have handle=0 and handle_type=none. * To call a contact we have to add him in the group interface of the * channel. MissionControl will detect the channel creation and |