commit | d54fa3ef3cd143a99491805287978c5c386adc62 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Wed Feb 20 16:48:52 2002 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Wed Feb 20 16:48:52 2002 +0000 |
tree | bd59627f50bfb5cb592779eaf2a14ca47ff04d37 | |
parent | 6dbcaf8686cec01223029997a2d22054a2507e55 [diff] [blame] |
found and fixed a couple of allocation bugs Daniel * parser.c valid.c: found and fixed a couple of allocation bugs Daniel
diff --git a/valid.c b/valid.c index c6db9e4..bb0bf8b 100644 --- a/valid.c +++ b/valid.c
@@ -421,6 +421,7 @@ "xmlNewElementContent : out of memory!\n"); return(NULL); } + memset(ret, 0, sizeof(xmlElementContent)); ret->type = type; ret->ocur = XML_ELEMENT_CONTENT_ONCE; if (name != NULL) {