mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- Lots of improvements, too long to list here
- Push mode for the XML parser (HTML to come) - XML shell like interface for debug - improvements on XPath and validation Daniel
This commit is contained in:
@ -114,10 +114,13 @@ xmlAddEntity(xmlEntitiesTablePtr table, const xmlChar *name, int type,
|
||||
cur->SystemID = xmlStrdup(SystemID);
|
||||
else
|
||||
cur->SystemID = NULL;
|
||||
if (content != NULL)
|
||||
cur->content = xmlStrdup(content);
|
||||
else
|
||||
if (content != NULL) {
|
||||
cur->length = xmlStrlen(content);
|
||||
cur->content = xmlStrndup(content, cur->length);
|
||||
} else {
|
||||
cur->length = 0;
|
||||
cur->content = NULL;
|
||||
}
|
||||
cur->orig = NULL;
|
||||
table->nb_entities++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user