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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index c144787..fc6ec63 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1118,10 +1118,7 @@ fname_as_string (int pretty_p)
return (char *) cstr.text;
}
else
- {
- namep = xmalloc (strlen (name) + 1);
- namep = xstrdup (name);
- }
+ namep = xstrdup (name);
return namep;
}