# HG changeset patch # User Marcus Lundblad # Date 1245963397 0 # Node ID bae447e1fa960b71576104d7b217366c30a07504 # Parent afe5c224f3e9843fa95bff4093b114e29fc229c2 Allow the "alt" property on a Bits of Binary object to be NULL (do not store it in the alt lookup hashtable). This will allow us to create data objects for temporary "one time" objects (such as file transfer thumbnails) diff -r afe5c224f3e9 -r bae447e1fa96 libpurple/protocols/jabber/data.c --- a/libpurple/protocols/jabber/data.c Thu Jun 25 20:46:11 2009 +0000 +++ b/libpurple/protocols/jabber/data.c Thu Jun 25 20:56:37 2009 +0000 @@ -185,7 +185,8 @@ { purple_debug_info("jabber", "associating local smiley\n alt = %s, cid = %s\n", alt, jabber_data_get_cid(data)); - g_hash_table_insert(local_data_by_alt, g_strdup(alt), data); + if (alt) + g_hash_table_insert(local_data_by_alt, g_strdup(alt), data); g_hash_table_insert(local_data_by_cid, g_strdup(jabber_data_get_cid(data)), data); }