aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fbuf.c b/src/fbuf.c
index 69a3475..33a7d6e 100644
--- a/src/fbuf.c
+++ b/src/fbuf.c
@@ -115,7 +115,8 @@ char* bstringify(struct TMPL_buf* b, size_t* size){
b->head = single;
b->tail = single;
- *size = b->total_len;
+ if(size != NULL)
+ *size = b->total_len;
return single->data;
}