# HG changeset patch # User Richard Laager # Date 1177808891 0 # Node ID 317f3ae0ef93ef44c4a5002e1500583422c75498 # Parent 175eadaead5394ca8024ed8eaea8c10dd5517d63 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! diff -r 175eadaead53 -r 317f3ae0ef93 libpurple/buddyicon.c --- 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);