changeset 16554:317f3ae0ef93

Fix a bug with the bugfix for empty icons. The logic was backwards here. This caused all buddy icons to be lost on migration and as an added bonus, it failed to solve the empty icon NULL extension bug!
author Richard Laager <rlaager@wiktel.com>
date Sun, 29 Apr 2007 01:08:11 +0000
parents 175eadaead53
children 8d8168fada21
files libpurple/buddyicon.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Sat Apr 28 02:24:40 2007 +0000
+++ b/libpurple/buddyicon.c	Sun Apr 29 01:08:11 2007 +0000
@@ -890,7 +890,7 @@
 		char *new_filename;
 
 		if (!read_icon_file(path, &icon_data, &icon_len) ||
-		    icon_data == NULL || icon_len > 0)
+		    icon_data == NULL || icon_len <= 0)
 		{
 			delete_buddy_icon_settings(node, setting_name);
 			g_free(path);