comparison libpurple/buddyicon.c @ 16502:c01528418cc2

I really shouldn't commit before compiling.
author Richard Laager <rlaager@wiktel.com>
date Fri, 27 Apr 2007 04:35:59 +0000
parents c8bc8048f264
children 42362f23d5a8
comparison
equal deleted inserted replaced
16500:c8bc8048f264 16502:c01528418cc2
970 PurpleAccount *account = cur->data; 970 PurpleAccount *account = cur->data;
971 const char *account_icon_file = purple_account_get_string(account, "buddy_icon", NULL); 971 const char *account_icon_file = purple_account_get_string(account, "buddy_icon", NULL);
972 972
973 if (account_icon_file != NULL) 973 if (account_icon_file != NULL)
974 { 974 {
975 char *path = g_build_filename(dirname, filename, NULL); 975 char *path = g_build_filename(dirname, account_icon_file, NULL);
976 if (!g_file_test(filename, G_FILE_TEST_EXISTS)) 976 if (!g_file_test(path, G_FILE_TEST_EXISTS))
977 { 977 {
978 purple_account_set_string(account, "buddy_icon", NULL); 978 purple_account_set_string(account, "buddy_icon", NULL);
979 } else { 979 } else {
980 ref_filename(account_icon_file); 980 ref_filename(account_icon_file);
981 } 981 }