aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 3cf1baa..c144787 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1119,7 +1119,7 @@ fname_as_string (int pretty_p)
}
else
{
- namep = (char *) xcalloc (strlen (name) + 1, sizeof (char));
+ namep = xmalloc (strlen (name) + 1);
namep = xstrdup (name);
}