1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-28 07:21:26 +03:00

Patched a bug when creating HTML document structures, Daniel.

This commit is contained in:
Daniel Veillard 1999-08-30 13:05:42 +00:00
parent d2d38e9ab3
commit e7a5a77dd0

View File

@ -1119,6 +1119,7 @@ htmlNewDoc(const CHAR *URI, const CHAR *ExternalID) {
fprintf(stderr, "xmlNewDoc : malloc failed\n");
return(NULL);
}
memset(cur, 0, sizeof(xmlDoc));
cur->type = XML_DOCUMENT_NODE;
cur->version = NULL;