On Thu, May 23, 2002 at 01:47:52PM -0700, Jeshua Lacock wrote:
>   char * UT_strdup(const char * szSource)
>   {
> +       if (szSource == NULL)
> +               return(NULL);
> +

This looks like it just hides the real problem, being that UT_strdup is
passed null.

Can we fix the caller instead of penalizing everybody who calls UT_strdup?

-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
                                                 -- Benjamin Franklin

Attachment: msg24927/pgp00000.pgp
Description: PGP signature

Reply via email to