Skip to content
Snippets Groups Projects
Commit e3b2a7b5 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

r12935@Kushana: nickm | 2007-05-10 11:25:09 -0400

 Make buffer unit tests pass again


svn:r10158
parent de11011b
Branches
Tags
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment