gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r34840 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r34840 - gnunet/src/rps
Date: Wed, 7 Jan 2015 20:49:40 +0100

Author: ch3
Date: 2015-01-07 20:49:40 +0100 (Wed, 07 Jan 2015)
New Revision: 34840

Modified:
   gnunet/src/rps/gnunet-service-rps_sampler.c
Log:
fixed index of for-loop

Modified: gnunet/src/rps/gnunet-service-rps_sampler.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps_sampler.c 2015-01-07 17:27:15 UTC (rev 
34839)
+++ gnunet/src/rps/gnunet-service-rps_sampler.c 2015-01-07 19:49:40 UTC (rev 
34840)
@@ -363,7 +363,7 @@
         "SAMPLER: sampler->sampler_elements now points to %p\n",
         sampler->sampler_elements);
 
-    for (i = new_size ; i < old_size ; i++)
+    for (i = 0 ; i < old_size - new_size ; i++)
     {/* Remove unneeded rest */
       LOG (GNUNET_ERROR_TYPE_DEBUG, "SAMPLER: Removing %" PRIX64 ". 
sampler\n", i);
       if (NULL != sampler->remove_cb)




reply via email to

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