calling nextAttribute before first tag uses uninited variables

(cherry picked from commit c5818e929c7b608ccc3277f1204b491e426925de)

Signed-off-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2012-06-07 23:23:03 +01:00
parent 567147acbc
commit 32e59f91d0

View File

@@ -115,6 +115,7 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl)
pos_ = static_cast< char * >(fileAddress_); pos_ = static_cast< char * >(fileAddress_);
end_ = pos_ + fileSize_; end_ = pos_ + fileSize_;
state_ = STATE_CONTENT; state_ = STATE_CONTENT;
firstAttribute_ = true;
} }
XmlReader::~XmlReader() { XmlReader::~XmlReader() {