]> git.pld-linux.org Git - packages/evolution.git/commitdiff
- protect a divide by 0 for 0 length messages
authorgrzegol <grzegol@pld-linux.org>
Thu, 20 Nov 2003 15:10:53 +0000 (15:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (http://bugzilla.ximian.com/show_bug.cgi?id=41610)

Changed files:
    evolution-div_by_zero.patch -> 1.1

evolution-div_by_zero.patch [new file with mode: 0644]

diff --git a/evolution-div_by_zero.patch b/evolution-div_by_zero.patch
new file mode 100644 (file)
index 0000000..1dbe994
--- /dev/null
@@ -0,0 +1,24 @@
+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.
+
+Index: camel/providers/pop3/camel-pop3-folder.c
+===================================================================
+RCS file: /cvs/gnome/evolution/camel/providers/pop3/camel-pop3-folder.c,v
+retrieving revision 1.59
+diff -u -3 -r1.59 camel-pop3-folder.c
+--- camel/providers/pop3/camel-pop3-folder.c   18 Jun 2003 17:55:40 -0000      1.59
++++ camel/providers/pop3/camel-pop3-folder.c   22 Sep 2003 22:55:00 -0000
+@@ -365,7 +365,8 @@
+               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 */
This page took 0.232909 seconds and 4 git commands to generate.