-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mxml_write_node causing segfault #228
Comments
What version of Mini-XML are you using? Can you provide some sample code showing what you are doing? |
version is 2.11
|
OK, thanks for the test code I've confirmed the issue, although I'm surprised that this hasn't cropped up before... Investigating... |
Hi, |
Well, the function currently saves the specified node tree, which includes the siblings. That said, the typical usage is to print the root node ( |
when I'm writing a xml subchild as string I get an segfault in the function mxml_write_node
because current->parent in mxml-file.c:2984 is NULL!
I think the problem is here
you should do current = current->parent; first and then do the check if we are now at the start node. In other case you have a problem when the start node has next elements. then you iterate trough all nodes until parent is zero...
When we print a subchild which has next elements you jump over the break condition....
The text was updated successfully, but these errors were encountered: