diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 12:19:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-06-11 17:13:41 +0000 |
commit | cd8f0efd81c9a74fe2c1ca5b0230235ad29d1e44 (patch) | |
tree | ac911bec09ba24b46fca7b290c23ee37b1ecb6e3 /src/serd_internal.h | |
parent | 02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb (diff) | |
download | serd-cd8f0efd81c9a74fe2c1ca5b0230235ad29d1e44.tar.gz serd-cd8f0efd81c9a74fe2c1ca5b0230235ad29d1e44.tar.bz2 serd-cd8f0efd81c9a74fe2c1ca5b0230235ad29d1e44.zip |
Zero-initialize stack memory
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; |