diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 084b94c03f..9b92d8af63 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -236,8 +236,8 @@ public: /// positions of child buffers in the buffer typedef map 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;