summaryrefslogtreecommitdiff
path: root/gdb/typeprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r--gdb/typeprint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 9e44225f424..8dc57f20b8b 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -297,8 +297,9 @@ find_global_typedef (const struct type_print_options *flags,
if (applied != NULL)
{
- new_tf->name = obstack_copy0 (&flags->global_typedefs->storage, applied,
- strlen (applied));
+ new_tf->name
+ = (const char *) obstack_copy0 (&flags->global_typedefs->storage,
+ applied, strlen (applied));
xfree (applied);
}