aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/xml-utils.c')
-rw-r--r--gdb/common/xml-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/xml-utils.c b/gdb/common/xml-utils.c
index e928afb653a..00e035621e6 100644
--- a/gdb/common/xml-utils.c
+++ b/gdb/common/xml-utils.c
@@ -49,7 +49,7 @@ xml_escape_text (const char *text)
}
/* Expand the result. */
- result = xmalloc (i + special + 1);
+ result = (char *) xmalloc (i + special + 1);
for (i = 0, special = 0; text[i] != '\0'; i++)
switch (text[i])
{