diff --git a/common/stream.h b/common/stream.h index a853f6d2..a9e39107 100644 --- a/common/stream.h +++ b/common/stream.h @@ -279,6 +279,7 @@ inline void stream_in_t::pop(TType& value) { if (inBuffer.size() - inPosition < sizeof(TType)) { + memset(&value, 0, sizeof(TType)); inPosition = this->inBuffer.size(); failed = true; return;