diff options
Diffstat (limited to 'gdb/xml-support.c')
-rw-r--r-- | gdb/xml-support.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/xml-support.c b/gdb/xml-support.c index 5d058b4..5062bc1 100644 --- a/gdb/xml-support.c +++ b/gdb/xml-support.c @@ -94,7 +94,7 @@ gdb_xml_body_text (void *data, const XML_Char *text, int length) if (scope->body == NULL) { - scope->body = XZALLOC (struct obstack); + scope->body = XCNEW (struct obstack); obstack_init (scope->body); } @@ -454,7 +454,7 @@ gdb_xml_create_parser_and_cleanup (const char *name, struct cleanup *result; /* Initialize the parser. */ - parser = XZALLOC (struct gdb_xml_parser); + parser = XCNEW (struct gdb_xml_parser); parser->expat_parser = XML_ParserCreateNS (NULL, '!'); if (parser->expat_parser == NULL) { @@ -877,7 +877,7 @@ xml_process_xincludes (const char *name, const char *text, struct cleanup *back_to; char *result = NULL; - data = XZALLOC (struct xinclude_parsing_data); + data = XCNEW (struct xinclude_parsing_data); obstack_init (&data->obstack); back_to = make_cleanup (xml_xinclude_cleanup, data); |