aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-09-23 09:02:23 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-09-23 09:02:23 +0800
commit98cf0ad5f56332f9a8d6bcdf1e0da2f18e656fdd (patch)
tree0f7d05faf7e3f1c87530db9cec2625cd221778b4 /camel
parentbd44c72b2b90b1e9bb159b3d62efd1bf5496b0df (diff)
downloadgsoc2013-evolution-98cf0ad5f56332f9a8d6bcdf1e0da2f18e656fdd.tar.gz
gsoc2013-evolution-98cf0ad5f56332f9a8d6bcdf1e0da2f18e656fdd.tar.zst
gsoc2013-evolution-98cf0ad5f56332f9a8d6bcdf1e0da2f18e656fdd.zip
** See bug #41610
2003-09-22 Not Zed <NotZed@Ximian.com> ** 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
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b22b8703b3..8f13667c2a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,12 @@
2003-09-22 Not Zed <NotZed@Ximian.com>
+ ** See bug #41610
+
+ * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a
+ divide by 0 for 0 length messages.
+
+2003-09-22 Not Zed <NotZed@Ximian.com>
+
* providers/imap/camel-imap-provider.c: Added "offline_sync"
option, which lets you synchronise all mail to local storage
automagically.
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 */