projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d8c1be
)
fixed index of for-loop
author
Julius Bünger
<buenger@mytum.de>
Wed, 7 Jan 2015 19:49:40 +0000
(19:49 +0000)
committer
Julius Bünger
<buenger@mytum.de>
Wed, 7 Jan 2015 19:49:40 +0000
(19:49 +0000)
src/rps/gnunet-service-rps_sampler.c
patch
|
blob
|
history
diff --git
a/src/rps/gnunet-service-rps_sampler.c
b/src/rps/gnunet-service-rps_sampler.c
index 952ed8794fe05916dea9a126a5d999dd812fc337..a74d304df8b127f266bb82b77ea82e8940f50687 100644
(file)
--- 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)