mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Fix crash bug in mxmlWrite functions (Issue #228)
This commit is contained in:
parent
501dcfe6b6
commit
d32a541211
@ -8,7 +8,8 @@
|
||||
- The `mxmlNewCDATA` and `mxmlSetCDATA` functions incorrectly added the XML
|
||||
trailer "]]" to the string (Issue #216)
|
||||
- Cross-compiling failed on install (Issue #218)
|
||||
- Updated the ZIP container library used for mxmldoc.
|
||||
- Fixed a crash bug in the `mxmlWrite` functions (Issue #228)
|
||||
- Updated the markdown and ZIP container libraries used for mxmldoc.
|
||||
|
||||
|
||||
# Changes in Mini-XML 2.11
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* File loading code for Mini-XML, a small XML file parsing library.
|
||||
*
|
||||
* Copyright 2003-2017 by Michael R Sweet.
|
||||
* Copyright 2003-2018 by Michael R Sweet.
|
||||
*
|
||||
* These coded instructions, statements, and computer programs are the
|
||||
* property of Michael R Sweet and are protected by Federal copyright
|
||||
@ -2974,7 +2974,7 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */
|
||||
{
|
||||
while ((next = current->next) == NULL)
|
||||
{
|
||||
if (current == node)
|
||||
if (current == node || !current->parent)
|
||||
break;
|
||||
|
||||
/*
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Documentation generator using Mini-XML, a small XML file parsing
|
||||
* library.
|
||||
*
|
||||
* Copyright 2003-2017 by Michael R Sweet.
|
||||
* Copyright 2003-2018 by Michael R Sweet.
|
||||
*
|
||||
* These coded instructions, statements, and computer programs are the
|
||||
* property of Michael R Sweet and are protected by Federal copyright
|
||||
|
Loading…
Reference in New Issue
Block a user