mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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:
parent
1503021ee5
commit
148e2e1c48
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user