aboutsummaryrefslogtreecommitdiff
path: root/gdb/xml-support.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-17 18:48:52 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-17 18:48:52 +0000
commita109c7c1042127edfe32cbc50f315c3dc40f8607 (patch)
tree0322616410678495af3fd4898e49a5b3116fda2c /gdb/xml-support.c
parent0cce5bd9dd8b740485b4ce847a0bd09a23097076 (diff)
downloadgdb-a109c7c1042127edfe32cbc50f315c3dc40f8607.zip
gdb-a109c7c1042127edfe32cbc50f315c3dc40f8607.tar.gz
gdb-a109c7c1042127edfe32cbc50f315c3dc40f8607.tar.bz2
2010-05-17 Michael Snyder <msnyder@vmware.com>
* valarith.c: White space. * valops.c: White space. * valprint.c: White space. * value.c: White space. * varobj.c: White space. * xcoffread.c: White space. * xml-support.c: White space. * xml-tdesc.c: White space.
Diffstat (limited to 'gdb/xml-support.c')
-rw-r--r--gdb/xml-support.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/xml-support.c b/gdb/xml-support.c
index a8dbc51..b5e8b50 100644
--- a/gdb/xml-support.c
+++ b/gdb/xml-support.c
@@ -560,6 +560,7 @@ gdb_xml_parse (struct gdb_xml_parser *parser, const char *buffer)
else if (status == XML_STATUS_ERROR)
{
enum XML_Error err = XML_GetErrorCode (parser->expat_parser);
+
error_string = XML_ErrorString (err);
}
else
@@ -1016,6 +1017,7 @@ obstack_xml_printf (struct obstack *obstack, const char *format, ...)
{
char *p;
char *a = va_arg (ap, char *);
+
obstack_grow (obstack, prev, f - prev - 1);
p = xml_escape_text (a);
obstack_grow_str (obstack, p);
@@ -1046,6 +1048,7 @@ xml_fetch_content_from_file (const char *filename, void *baton)
if (dirname && *dirname)
{
char *fullname = concat (dirname, "/", filename, (char *) NULL);
+
if (fullname == NULL)
nomem (0);
file = fopen (fullname, FOPEN_RT);