# HG changeset patch # User Etan Reisner # Date 1245041005 0 # Node ID 4dfffaf9ceacb6c959765395f5ec4a6e25bbe2d3 # Parent 4023cee127c69cb1f5c85f6a33e3c3036a1691be Don't try to load an image from an empty path. It just spews to the debug log. diff -r 4023cee127c6 -r 4dfffaf9ceac pidgin/gtkaccount.c --- a/pidgin/gtkaccount.c Tue Jun 09 23:30:18 2009 +0000 +++ b/pidgin/gtkaccount.c Mon Jun 15 04:43:25 2009 +0000 @@ -1990,8 +1990,9 @@ /* This is for when set_account() is called for a single account */ const char *path; path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon"); - if (path != NULL) + if ((path != NULL) && (*path != '\0')) { img = purple_imgstore_new_from_file(path); + } } } else { img = purple_buddy_icons_find_account_icon(account);