mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
r12935@Kushana: nickm | 2007-05-10 11:25:09 -0400
Make buffer unit tests pass again svn:r10158
This commit is contained in:
parent
de11011b1b
commit
e3b2a7b53b
@ -323,7 +323,7 @@ buf_resize(buf_t *buf, size_t new_capacity)
|
||||
}
|
||||
}
|
||||
|
||||
if (new_capacity < MIN_LAZY_SHRINK_SIZE)
|
||||
if (buf->len == 0 && new_capacity < MIN_LAZY_SHRINK_SIZE)
|
||||
new_capacity = MIN_LAZY_SHRINK_SIZE;
|
||||
|
||||
if (buf->len == 0 && IS_FREELIST_SIZE(new_capacity)) {
|
||||
|
Loading…
Reference in New Issue
Block a user