From: Julius Bünger Date: Wed, 7 Jan 2015 19:49:40 +0000 (+0000) Subject: fixed index of for-loop X-Git-Tag: initial-import-from-subversion-38251~2712 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48c87dc9de44e62a146399d1ed180da8a4c88f49;p=oweals%2Fgnunet.git fixed index of for-loop --- diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c index 952ed8794..a74d304df 100644 --- a/src/rps/gnunet-service-rps_sampler.c +++ b/src/rps/gnunet-service-rps_sampler.c @@ -363,7 +363,7 @@ RPS_sampler_resize (unsigned int new_size) "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)