commit | f0dd6e11aa56addced3de33fab30529a51efaed5 | [log] [tgz] |
---|---|---|
author | Tristan Van Berkom <tristan@upstairslabs.com> | Tue Apr 22 21:15:05 2014 -0400 |
committer | Daniel Veillard <veillard@redhat.com> | Wed Apr 23 10:42:57 2014 +0800 |
tree | 715c10225851e910aa0f1ca81210a7dacaddc4d1 | |
parent | 7d508fed991a35c617d0180f72200fbd7bfbd081 [diff] |
xmlNodeSetName: Allow setting the name to a substring of the currently set name Avoid freeing the currently set name until after having assigned the new name, this allows one to call xmlNodeSetName (node, node->name + 1) to set the new name of the node to a substring of the current name without introducing any crash and without requiring an extra strdup().