diff --git a/gcc/c-common.c b/gcc/c-common.c index c144787503d..fc6ec6308ba 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; }