Initialize ScopeBuffer::buffer member in constructor

Found by Coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2016-06-09 16:34:25 +02:00
parent 4f795bd309
commit 020a890f42

View File

@ -236,8 +236,8 @@ public:
/// positions of child buffers in the buffer
typedef map<Buffer const * const, DocIterator> BufferPositionMap;
struct ScopeBuffer {
ScopeBuffer() {}
ScopeBuffer(DocIterator const & s,Buffer const * b)
ScopeBuffer() : buffer(0) {}
ScopeBuffer(DocIterator const & s, Buffer const * b)
: scope(s), buffer(b) {}
DocIterator scope;
Buffer const * buffer;