From 98cf0ad5f56332f9a8d6bcdf1e0da2f18e656fdd Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 23 Sep 2003 01:02:23 +0000 Subject: ** See bug #41610 2003-09-22 Not Zed ** See bug #41610 * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a divide by 0 for 0 length messages. svn path=/trunk/; revision=22654 --- camel/providers/pop3/camel-pop3-folder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camel/providers') 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 */ -- cgit v1.2.3