]> git.pld-linux.org Git - packages/evolution.git/blame - evolution-div_by_zero.patch
- BR: which, gcc-g77
[packages/evolution.git] / evolution-div_by_zero.patch
CommitLineData
18fab1aa 12003-09-22 Not Zed <NotZed@Ximian.com>
2
3 ** See bug #41610
4
5 * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a
6 divide by 0 for 0 length messages.
7
8Index: camel/providers/pop3/camel-pop3-folder.c
9===================================================================
10RCS file: /cvs/gnome/evolution/camel/providers/pop3/camel-pop3-folder.c,v
11retrieving revision 1.59
12diff -u -3 -r1.59 camel-pop3-folder.c
13--- camel/providers/pop3/camel-pop3-folder.c 18 Jun 2003 17:55:40 -0000 1.59
14+++ camel/providers/pop3/camel-pop3-folder.c 22 Sep 2003 22:55:00 -0000
15@@ -365,7 +365,8 @@
16 w += n;
17 if (w > fi->size)
18 w = fi->size;
19- camel_operation_progress(NULL, (w * 100) / fi->size);
20+ if (fi->size != 0)
21+ camel_operation_progress(NULL, (w * 100) / fi->size);
22 }
23
24 /* it all worked, output a '#' to say we're a-ok */
This page took 0.0909180000000001 seconds and 4 git commands to generate.