Mercurial > pidgin
changeset 14186:ad751ad39f23
[gaim-migrate @ 16849]
Fix assert editing an account w/o a buddy icon specified.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 18 Aug 2006 22:26:09 +0000 |
parents | ae71426fbb2e |
children | 95a4542e92d4 |
files | src/gtkaccount.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkaccount.c Fri Aug 18 20:11:51 2006 +0000 +++ b/src/gtkaccount.c Fri Aug 18 22:26:09 2006 +0000 @@ -192,7 +192,9 @@ set_dialog_icon(AccountPrefsDialog *dialog) { char *filename = gaim_buddy_icons_get_full_path(dialog->icon_path); - GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename, NULL); + GdkPixbuf *pixbuf = NULL; + if (filename) + gdk_pixbuf_new_from_file(filename, NULL); if (pixbuf && dialog->prpl_info && (dialog->prpl_info->icon_spec.scale_rules & GAIM_ICON_SCALE_DISPLAY))