Mercurial > pidgin
changeset 27090:4dfffaf9ceac
Don't try to load an image from an empty path. It just spews to the debug log.
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Mon, 15 Jun 2009 04:43:25 +0000 |
parents | 4023cee127c6 |
children | 83a36e594d5d |
files | pidgin/gtkaccount.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);