diff options
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r-- | src/serd_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 52dd31ed..04f9feaa 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -144,7 +144,7 @@ static inline SerdStack serd_stack_new(size_t size) { SerdStack stack; - stack.buf = (uint8_t*)malloc(size); + stack.buf = (uint8_t*)calloc(1, size); stack.buf_size = size; stack.size = SERD_STACK_BOTTOM; return stack; |