summaryrefslogtreecommitdiff
path: root/src/libstddjb/bufalloc_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/bufalloc_init.c')
-rw-r--r--src/libstddjb/bufalloc_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/bufalloc_init.c b/src/libstddjb/bufalloc_init.c
index 921dc3d..913dabb 100644
--- a/src/libstddjb/bufalloc_init.c
+++ b/src/libstddjb/bufalloc_init.c
@@ -5,7 +5,7 @@
void bufalloc_init (bufalloc *ba, int (*op)(int, char const *, unsigned int), int fd)
{
- ba->x.len = 0 ;
+ ba->x = stralloc_zero ;
ba->op = op ;
ba->fd = fd ;
ba->p = 0 ;