Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 923739
Collapse All | Expand All

(-)a/libs/libparsers/src/xmlparser.cpp (-2 / +1 lines)
Lines 152-158 Link Here
152
{
152
{
153
	QByteArray buffer;
153
	QByteArray buffer;
154
	QString msg, file;
154
	QString msg, file;
155
	xmlError *xml_error=nullptr;
156
	int parser_opt;
155
	int parser_opt;
157
156
158
	if(!xml_buffer.isEmpty())
157
	if(!xml_buffer.isEmpty())
Lines 179-185 Link Here
179
		xml_doc=xmlReadMemory(buffer.data(), buffer.size(),	nullptr, nullptr, parser_opt);
178
		xml_doc=xmlReadMemory(buffer.data(), buffer.size(),	nullptr, nullptr, parser_opt);
180
179
181
		//In case the document criation fails, gets the last xml parser error
180
		//In case the document criation fails, gets the last xml parser error
182
		xml_error=xmlGetLastError();
181
		const xmlError *xml_error = xmlGetLastError();
183
182
184
		//If some error is set
183
		//If some error is set
185
		if(xml_error)
184
		if(xml_error)

Return to bug 923739