mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
libxml: Fix compilation error with gcc < 10 (regression 2023-05-26).
* gnulib-local/lib/libxml/tree.c (xmlDOMWrapCloneNode): Add braces.
This commit is contained in:
parent
c547620069
commit
36cc99cdc6
@ -9514,25 +9514,27 @@ xmlDOMWrapCloneNode(xmlDOMWrapCtxtPtr ctxt,
|
||||
/*
|
||||
* Attributes (xmlAttr).
|
||||
*/
|
||||
xmlAttrPtr cloneAttr = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr));
|
||||
if (cloneAttr == NULL) {
|
||||
xmlTreeErrMemory("xmlDOMWrapCloneNode(): allocating an attr-node");
|
||||
goto internal_error;
|
||||
}
|
||||
memset(cloneAttr, 0, sizeof(xmlAttr));
|
||||
/*
|
||||
* Set hierachical links.
|
||||
* TODO: Change this to add to the end of attributes.
|
||||
*/
|
||||
if (resultClone != NULL) {
|
||||
cloneAttr->parent = parentClone;
|
||||
if (prevClone) {
|
||||
prevClone->next = (xmlNodePtr) cloneAttr;
|
||||
cloneAttr->prev = (xmlAttrPtr) prevClone;
|
||||
{
|
||||
xmlAttrPtr cloneAttr = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr));
|
||||
if (cloneAttr == NULL) {
|
||||
xmlTreeErrMemory("xmlDOMWrapCloneNode(): allocating an attr-node");
|
||||
goto internal_error;
|
||||
}
|
||||
memset(cloneAttr, 0, sizeof(xmlAttr));
|
||||
/*
|
||||
* Set hierachical links.
|
||||
* TODO: Change this to add to the end of attributes.
|
||||
*/
|
||||
if (resultClone != NULL) {
|
||||
cloneAttr->parent = parentClone;
|
||||
if (prevClone) {
|
||||
prevClone->next = (xmlNodePtr) cloneAttr;
|
||||
cloneAttr->prev = (xmlAttrPtr) prevClone;
|
||||
} else
|
||||
parentClone->properties = (xmlAttrPtr) cloneAttr;
|
||||
} else
|
||||
parentClone->properties = (xmlAttrPtr) cloneAttr;
|
||||
} else
|
||||
resultClone = (xmlNodePtr) cloneAttr;
|
||||
resultClone = (xmlNodePtr) cloneAttr;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user