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
This commit is contained in:
Nick Mathewson 2007-12-27 03:23:57 +00:00
parent 1503021ee5
commit 148e2e1c48

View File

@ -237,6 +237,7 @@ buf_shrink_freelists(int free_all)
while (n_to_skip) { while (n_to_skip) {
tor_assert((*chp)->next); tor_assert((*chp)->next);
chp = &(*chp)->next; chp = &(*chp)->next;
--n_to_skip;
} }
chunk = *chp; chunk = *chp;
*chp = NULL; *chp = NULL;