From 1e7d573f24d53b428e43e29e5c5591524f507b92 Mon Sep 17 00:00:00 2001 From: Roman Proskuryakov Date: Sat, 7 May 2016 20:40:21 +0300 Subject: [PATCH] Fix uninitialized values in ESMWriter::save --- components/esm/esmwriter.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/esm/esmwriter.cpp b/components/esm/esmwriter.cpp index 4d9999143..b8c78a2b9 100644 --- a/components/esm/esmwriter.cpp +++ b/components/esm/esmwriter.cpp @@ -9,10 +9,13 @@ namespace ESM { ESMWriter::ESMWriter() - : mStream(NULL) - , mEncoder (0) - , mRecordCount (0) - , mCounting (true) + : mRecords() + , mStream(NULL) + , mHeaderPos() + , mEncoder(NULL) + , mRecordCount(0) + , mCounting(true) + , mHeader() {} unsigned int ESMWriter::getVersion() const