From e7a5a77dd0abc0be021415f14027007b9a740991 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 30 Aug 1999 13:05:42 +0000 Subject: [PATCH] Patched a bug when creating HTML document structures, Daniel. --- HTMLparser.c | 1 + 1 file changed, 1 insertion(+) 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;