* c-common.c (fname_as_string): Fix xcalloc to xmalloc.

From-SVN: r82384
This commit is contained in:
Aldy Hernandez 2004-05-28 22:05:45 +00:00 committed by Aldy Hernandez
parent 9e6f2e7dca
commit e851b37384
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-05-28 Aldy Hernandez <aldyh@redhat.com>
* c-common.c (fname_as_string): Fix xcalloc to xmalloc.
2004-05-28 Aldy Hernandez <aldyh@redhat.com> 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
* testsuite/g++.dg/charset/function.cc: New. * testsuite/g++.dg/charset/function.cc: New.

View File

@ -1119,7 +1119,7 @@ fname_as_string (int pretty_p)
} }
else else
{ {
namep = (char *) xcalloc (strlen (name) + 1, sizeof (char)); namep = xmalloc (strlen (name) + 1);
namep = xstrdup (name); namep = xstrdup (name);
} }