Fix parsing XML with blanks from memory

This is needed when the butler thread loads a plugin with
MIDNAM. xmlKeepBlanksDefault() setting is per thread.

see also df3a4ed9c6
This commit is contained in:
Robin Gareus 2020-04-23 02:27:04 +02:00
parent 1e380b1e2e
commit afad873a22
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -133,6 +133,8 @@ XMLTree::read_buffer (char const* buffer, bool to_tree_doc)
delete _root;
_root = 0;
xmlKeepBlanksDefault(0);
doc = xmlParseMemory (buffer, strlen(buffer));
if (!doc) {
return false;