diff pidgin/gtkstatusbox.c @ 28149:6e1a582ae629

statusbox: Avoid an assertion failure from ""
author Paul Aurich <paul@darkrain42.org>
date Mon, 03 Aug 2009 18:30:22 +0000
parents f55455c7ae27
children e35043e96a1a 2dcff225172e
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);