gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14533 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r14533 - gnunet/src/testing
Date: Thu, 24 Feb 2011 17:36:41 +0100

Author: nevans
Date: 2011-02-24 17:36:40 +0100 (Thu, 24 Feb 2011)
New Revision: 14533

Modified:
   gnunet/src/testing/testing_group.c
Log:
fixed divide by zero bug

Modified: gnunet/src/testing/testing_group.c
===================================================================
--- gnunet/src/testing/testing_group.c  2011-02-24 15:29:34 UTC (rev 14532)
+++ gnunet/src/testing/testing_group.c  2011-02-24 16:36:40 UTC (rev 14533)
@@ -1014,6 +1014,8 @@
   ret->print = print;
   ret->total = total;
   ret->modnum = total / 4;
+  if (ret->modnum == 0) /* Divide by zero check */
+    ret->modnum = 1;
   ret->dotnum = (total / 50) + 1;
   if (start_string != NULL)
     ret->startup_string = GNUNET_strdup(start_string);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]