Commit 96879dc6 authored by Ulrich Sibiller's avatar Ulrich Sibiller

EncodeBuffer.cpp: add VALGRIND guard

Same as in WriteBuffer.cpp Valgrind will complain about uninitialized data, but we are only writing to the memory here.
parent 6198e037
......@@ -70,6 +70,13 @@ EncodeBuffer::EncodeBuffer()
initialSize_ = ENCODE_BUFFER_DEFAULT_SIZE;
thresholdSize_ = ENCODE_BUFFER_DEFAULT_SIZE << 1;
maximumSize_ = ENCODE_BUFFER_DEFAULT_SIZE << 4;
#ifdef VALGRIND
memset(buffer_, '\0', size_);
#endif
}
EncodeBuffer::~EncodeBuffer()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment