aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/pop3
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/pop3')
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 0598a26a51..db77ad8191 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -365,7 +365,8 @@ cmd_tocache(CamelPOP3Engine *pe, CamelPOP3Stream *stream, void *data)
w += n;
if (w > fi->size)
w = fi->size;
- camel_operation_progress(NULL, (w * 100) / fi->size);
+ if (fi->size != 0)
+ camel_operation_progress(NULL, (w * 100) / fi->size);
}
/* it all worked, output a '#' to say we're a-ok */