Re: Return values of malloc/strdup/... not checked (was Re: [patch] cdebconf and i18n)
> > Please use strdup and friends, or asprintf, or other kind of
> > things that are less prone to break.
>
> Ok, I will use strdup. While we are on it, why are return values of
> allocation routines never checked?
You could add checks, or use/define xstrdup to give some
useful error message.
They will cause problem sometime in the future, I suspect,
so fixing them whenever you notice would be a good start.
regards,
junichi
Reply to: