[xml] Small fix for xmlCopyEntity()



Hi,

There seems to be a typo in entities.c - xmlCopyEntity() returns an
xmlEntityPtr, so cur->type should be XML_ENTITY_DECL.

Anthony


--- entities.c  5 Dec 2001 20:16:08 -0000       1.1.1.1
+++ entities.c  9 Jan 2002 03:28:30 -0000
@@ -865,7 +865,7 @@
        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)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]