changeset 16530:72e51db8cac3

disapproval of revision 'cf51292b9bf12554eecb319a673f153ef5c6f0e4'
author Richard Laager <rlaager@wiktel.com>
date Sat, 28 Apr 2007 02:29:43 +0000
parents 42362f23d5a8
children 69e36b560549
files libpurple/buddyicon.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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