]> git.pld-linux.org Git - packages/evolution.git/blob - evolution-div_by_zero.patch
- massive change: BR openssl-devel >= 0.9.7d
[packages/evolution.git] / evolution-div_by_zero.patch
1 2003-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
8 Index: camel/providers/pop3/camel-pop3-folder.c
9 ===================================================================
10 RCS file: /cvs/gnome/evolution/camel/providers/pop3/camel-pop3-folder.c,v
11 retrieving revision 1.59
12 diff -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.106629 seconds and 3 git commands to generate.