diff options
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 071edad89d..40d6b04d87 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -132,6 +132,10 @@ buf_t *buf_new() return buf_new_with_capacity(INITIAL_BUF_SIZE); } +void buf_clear(buf_t *buf) +{ + buf->datalen = 0; +} size_t buf_datalen(const buf_t *buf) { |