summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-22 21:12:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-23 08:49:28 +0100
commit3d441992df13d62109dc8385999ccc5ebe4bf338 (patch)
treebeacc62f851cbc435d5118d108ed70743888dd7e /sax
parent189bfa9c9946fde2f8bc791aad501f72ca45db5b (diff)
Better make the zero-initialization more explicit
...if initializing mbIsAttributesEmpty is necessary at all; a bit hard to tell from the code. Change-Id: Ia19014b4bf6bb2c41d11ee0afb43fe6bf7da1fcb
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 1b0ad53cb34c..78378dcfd14d 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -544,8 +544,9 @@ EventList* Entity::getEventList()
}
if (!mpProducedEvents)
{
- mpProducedEvents = new EventList();
+ mpProducedEvents = new EventList;
mpProducedEvents->maEvents.resize(mnEventListSize);
+ mpProducedEvents->mbIsAttributesEmpty = false;
mnProducedEventsSize = 0;
}
}