commit a697eae3b750b59e1c51cda98a91ef1360453f18
parent 73a8781b8463557a0ddabe7b1beb0507a4d2beca
Author: Christian Hesse <mail@eworm.de>
Date: Wed, 26 Mar 2014 22:27:53 +0100
Fix bug #3126 “libravatar: do not collect empty files”
Signed-off-by: Ricardo Mones <ricardo@mones.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/libravatar/libravatar.c b/src/plugins/libravatar/libravatar.c
@@ -171,7 +171,7 @@ static GtkWidget *image_widget_from_url(const gchar *url, const gchar *md5)
else
image = image_widget_from_filename(filename);
- if (!libravatarprefs.cache_icons) {
+ if (!libravatarprefs.cache_icons || filesize == 0) {
if (g_unlink(filename) < 0)
g_warning("failed to delete cache file %s\n", filename);
}