summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-07-17 18:51:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-07-17 18:51:16 (GMT)
commita9614f60e0eff29b450bc33c0e8e342b59bc7a04 (patch)
treeaae8f9e0716acae6d0b8ad5b39a2d7f8ba9fdbb1 /Swiften/Parser
parent4a251b6acf7d70cd63dbd9983a8585368027520a (diff)
downloadswift-contrib-a9614f60e0eff29b450bc33c0e8e342b59bc7a04.zip
swift-contrib-a9614f60e0eff29b450bc33c0e8e342b59bc7a04.tar.bz2
Fixed Expat parser bug.
Diffstat (limited to 'Swiften/Parser')
-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);