Re: UT_strdup Patch

From: Christian Biesinger (cbiesinger@web.de)
Date: Thu May 23 2002 - 17:25:19 EDT

  • Next message: Hubert Figuiere: "Re: UT_strdup Patch"

    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
    




    This archive was generated by hypermail 2.1.4 : Thu May 23 2002 - 17:30:22 EDT