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

* 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 @@ ...@@ -33,9 +33,5 @@
void void
nettle_buffer_init(struct nettle_buffer *buffer) nettle_buffer_init(struct nettle_buffer *buffer)
{ {
buffer->contents = NULL; nettle_buffer_init_realloc(buffer, NULL, nettle_realloc);
buffer->alloc = 0;
buffer->realloc = nettle_realloc;
buffer->realloc_ctx = NULL;
buffer->size = 0;
} }
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