This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: charset __FUNCTION__ patch


Aldy Hernandez <aldyh@redhat.com> writes:

> !       namep = (char *) xcalloc (strlen (name) + 1, sizeof (char));
> !       namep = xstrdup (name);

You don't need the xcalloc here.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]