Re: SetVariable - Mailing list pgsql-hackers

From Gaetano Mendola
Subject Re: SetVariable
Date
Msg-id 001201c36f21$9fd7f4c0$10d4a8c0@mm.eutelsat.org
Whole thread Raw
In response to Re: SetVariable  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: SetVariable
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I see other strdup() calls that don't check on a return.  Should we deal
> > with those too?
>
> strdup -> xstrdup if you're concerned.

May be is a good idea avoid the future use:

#define strdup   STRDUP_DEPRECATED_USE_INSTEAD_XSTRDUP

I don't like the other solution: redefine the strdup in function of xstrdup.


Regards
Gaetano Mendola




pgsql-hackers by date:

Previous
From: "Gaetano Mendola"
Date:
Subject: Re: SetVariable
Next
From: Thomas Swan
Date:
Subject: Re: ALTER TABLE ... TO ... to change related names