changeset 6877:1b5b0cea6915

[gaim-migrate @ 7423] Fixed an assertion warning for buddy icons on every conversation without a buddy icon. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 17 Sep 2003 06:46:36 +0000
parents a466315be4b5
children 618124fe3289
files src/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Wed Sep 17 06:30:23 2003 +0000
+++ b/src/gtkconv.c	Wed Sep 17 06:46:36 2003 +0000
@@ -5275,11 +5275,11 @@
 	{
 		GaimBuddyIcon *icon = gaim_im_get_icon(GAIM_IM(conv));
 
+		if (icon == NULL)
+			return;
+
 		data = gaim_buddy_icon_get_data(icon, &len);
 
-		if (!data)
-			return;
-
 		/* this is such an evil hack, i don't know why i'm even considering it.
 		 * we'll do it differently when gdk-pixbuf-loader isn't leaky anymore. */
 		g_snprintf(filename, sizeof(filename),