changeset 28149:6e1a582ae629

statusbox: Avoid an assertion failure from ""
author Paul Aurich <paul@darkrain42.org>
date Mon, 03 Aug 2009 18:30:22 +0000
parents 44c906e4556f
children 13f555d07a3f
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Mon Aug 03 17:06:26 2009 +0000
+++ b/pidgin/gtkstatusbox.c	Mon Aug 03 18:30:22 2009 +0000
@@ -466,7 +466,7 @@
 		const char *filename = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon");
 		PurpleStoredImage *img = NULL;
 
-		if (filename != NULL)
+		if (filename && *filename)
 			img = purple_imgstore_new_from_file(filename);
 
 		pidgin_status_box_set_buddy_icon(status_box, img);