diff options
author | David Robillard <d@drobilla.net> | 2018-05-13 00:48:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:47 -0500 |
commit | 299e386243004582a323507a5e17482b28d31b69 (patch) | |
tree | d273f9a13b751be1b5a212bcbfe91107fe269db5 /src/stack.h | |
parent | 3a62732bd03d1d0ba9daef1667afafa213828bf4 (diff) | |
download | serd-299e386243004582a323507a5e17482b28d31b69.tar.gz serd-299e386243004582a323507a5e17482b28d31b69.tar.bz2 serd-299e386243004582a323507a5e17482b28d31b69.zip |
Zero node padding before passing to reader sinks
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stack.h b/src/stack.h index 24641461..5c84df37 100644 --- a/src/stack.h +++ b/src/stack.h @@ -82,6 +82,7 @@ static inline void serd_stack_pop_to(SerdStack* stack, size_t n_bytes) { assert(stack->size >= n_bytes); + memset(stack->buf + n_bytes, 0, stack->size - n_bytes); stack->size = n_bytes; } |