summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-12-27 03:23:57 +0000
committerNick Mathewson <nickm@torproject.org>2007-12-27 03:23:57 +0000
commit148e2e1c489ca17aaf3fdca00dc425f2b677749c (patch)
tree21158a24783e40fe11c9bafac4b0ab1f7a71e6bd /src/or/buffers.c
parent1503021ee59e8ecfa4052b8fb8b44b9a4eddef77 (diff)
downloadtor-148e2e1c489ca17aaf3fdca00dc425f2b677749c.tar.gz
tor-148e2e1c489ca17aaf3fdca00dc425f2b677749c.zip
r17403@catbus: nickm | 2007-12-26 22:23:50 -0500
Apparently loops work better when you actually increment/decrement the loop variable. Who knew? svn:r12992
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 9a8064a27c..f8c19087a8 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -237,6 +237,7 @@ buf_shrink_freelists(int free_all)
while (n_to_skip) {
tor_assert((*chp)->next);
chp = &(*chp)->next;
+ --n_to_skip;
}
chunk = *chp;
*chp = NULL;