diff options
author | Not Zed <NotZed@Ximian.com> | 2003-09-23 09:02:23 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-09-23 09:02:23 +0800 |
commit | 98cf0ad5f56332f9a8d6bcdf1e0da2f18e656fdd (patch) | |
tree | 0f7d05faf7e3f1c87530db9cec2625cd221778b4 /camel/providers/pop3 | |
parent | bd44c72b2b90b1e9bb159b3d62efd1bf5496b0df (diff) | |
download | gsoc2013-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/providers/pop3')
-rw-r--r-- | camel/providers/pop3/camel-pop3-folder.c | 3 |
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 */ |