diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-23 02:27:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-23 02:28:48 +0200 |
commit | afad873a22490f7d56864b07d63fdd06d5883521 (patch) | |
tree | ed1e3b53c57c9a9ccf75273f7e60cc79894ff352 /libs/pbd | |
parent | 1e380b1e2edbd62f6bcfb1f79b14331bd39ac1d8 (diff) |
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 df3a4ed9c61d
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/xml++.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index bb2dd3e7ca..378ccd7b4f 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -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; |