From 020a890f423a37703124a0c3f48a037b27b56faa Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2016 16:34:25 +0200 Subject: [PATCH] Initialize ScopeBuffer::buffer member in constructor Found by Coverity. --- src/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;