Commit 15c78add authored by Niels Möller's avatar Niels Möller

* buffer.c (nettle_buffer_init_realloc): New function.

* buffer-init.c (nettle_buffer_init): Use nettle_buffer_init_realloc.

Rev: src/nettle/buffer-init.c:1.2
parent 97fcea89
......@@ -33,9 +33,5 @@
void
nettle_buffer_init(struct nettle_buffer *buffer)
{
buffer->contents = NULL;
buffer->alloc = 0;
buffer->realloc = nettle_realloc;
buffer->realloc_ctx = NULL;
buffer->size = 0;
nettle_buffer_init_realloc(buffer, NULL, nettle_realloc);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment