# HG changeset patch # User Richard Laager # Date 1177727383 0 # Node ID 72e51db8cac3e3f6a85f54c75e6ace3f2408e922 # Parent 42362f23d5a84784da3403105c286608bcfd2938 disapproval of revision 'cf51292b9bf12554eecb319a673f153ef5c6f0e4' diff -r 42362f23d5a8 -r 72e51db8cac3 libpurple/buddyicon.c --- a/libpurple/buddyicon.c Fri Apr 27 20:21:41 2007 +0000 +++ b/libpurple/buddyicon.c Sat Apr 28 02:29:43 2007 +0000 @@ -98,7 +98,6 @@ { PurpleCipherContext *context; gchar digest[41]; - const char *ext; context = purple_cipher_context_new_by_name("sha1", NULL); if (context == NULL) @@ -116,10 +115,9 @@ } purple_cipher_context_destroy(context); - ext = purple_util_get_image_extension(icon_data, icon_len); - /* Return the filename */ - return g_strdup_printf("%s%s%s", digest, ext ? "." : "", ext ? ext : ""); + return g_strdup_printf("%s.%s", digest, + purple_util_get_image_extension(icon_data, icon_len)); } static void