From 3d441992df13d62109dc8385999ccc5ebe4bf338 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 22 Feb 2017 21:12:54 +0100 Subject: 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 --- sax/source/fastparser/fastparser.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sax/source') 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; } } -- cgit