diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-07 23:23:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-08 10:25:32 +0100 |
commit | 32e59f91d0c716a28e428ae382d6fed983b5a19d (patch) | |
tree | fcaaf6364ff0696f560be9a4866a3358cfbf4ef5 /xmlreader | |
parent | 567147acbc8dcbb6c43652ac6b326759b48df9da (diff) |
calling nextAttribute before first tag uses uninited variables
(cherry picked from commit c5818e929c7b608ccc3277f1204b491e426925de)
Signed-off-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmlreader')
-rw-r--r-- | xmlreader/source/xmlreader.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlreader/source/xmlreader.cxx b/xmlreader/source/xmlreader.cxx index 9d197c7a336e..2acece2268d4 100644 --- a/xmlreader/source/xmlreader.cxx +++ b/xmlreader/source/xmlreader.cxx @@ -115,6 +115,7 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl) pos_ = static_cast< char * >(fileAddress_); end_ = pos_ + fileSize_; state_ = STATE_CONTENT; + firstAttribute_ = true; } XmlReader::~XmlReader() { |