diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1999-08-30 13:05:42 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1999-08-30 13:05:42 +0000 |
commit | e7a5a77dd0abc0be021415f14027007b9a740991 (patch) | |
tree | fbab3036479e2c1965882b87e86aa0b40b10daa3 | |
parent | d2d38e9ab3691d11755857b87d83f2322b85d93d (diff) | |
download | libxml2-e7a5a77dd0abc0be021415f14027007b9a740991.tar.gz |
Patched a bug when creating HTML document structures, Daniel.
-rw-r--r-- | HTMLparser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index a12b04a4..7ecf2b5a 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -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; |