1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Anthony Jones pointed a bug in xmlCopyEntity() Daniel

* entities.c: Anthony Jones pointed a bug in xmlCopyEntity()
Daniel
This commit is contained in:
Daniel Veillard
2002-01-09 11:51:37 +00:00
parent 7b602b421e
commit 845cce4cf1
6 changed files with 20 additions and 7 deletions

View File

@ -865,7 +865,7 @@ xmlCopyEntity(xmlEntityPtr ent) {
return(NULL);
}
memset(cur, 0, sizeof(xmlEntity));
cur->type = XML_ELEMENT_DECL;
cur->type = XML_ENTITY_DECL;
cur->etype = ent->etype;
if (ent->name != NULL)