summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swiften/Parser/ExpatParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Parser/ExpatParser.cpp b/Swiften/Parser/ExpatParser.cpp
index 236202b..8222ae0 100644
--- a/Swiften/Parser/ExpatParser.cpp
+++ b/Swiften/Parser/ExpatParser.cpp
@@ -63,7 +63,7 @@ static void handleEntityDeclaration(void* parser, const XML_Char*, int, const XM
}
-ExpatParser::ExpatParser(XMLParserClient* client) : XMLParser(client) {
+ExpatParser::ExpatParser(XMLParserClient* client) : XMLParser(client), p(new Private()) {
p->parser_ = XML_ParserCreateNS("UTF-8", NAMESPACE_SEPARATOR);
XML_SetUserData(p->parser_, this);
XML_SetElementHandler(p->parser_, handleStartElement, handleEndElement);