pidgin: 6492ddf2: Don't try to load an image from an empty...
deryni at pidgin.im
deryni at pidgin.im
Sun Jul 5 11:16:30 EDT 2009
-----------------------------------------------------------------
Revision: 6492ddf2ca5f56e6e409afa213d192b2e63a1c85
Ancestor: b8c29e0dfc3c9081c1be0dd63967aa5224bb3cfa
Author: deryni at pidgin.im
Date: 2009-06-15T04:43:25
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6492ddf2ca5f56e6e409afa213d192b2e63a1c85
Modified files:
pidgin/gtkaccount.c
ChangeLog:
Don't try to load an image from an empty path. It just spews to the debug log.
-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c f7bb182fa4fd2fb71894e9c2580c2ea1e64e84ae
+++ pidgin/gtkaccount.c 7c232e622a50eba6672db2f25139f1c581302ee9
@@ -1990,8 +1990,9 @@ set_account(GtkListStore *store, GtkTree
/* 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);
More information about the Commits
mailing list