Stephen Frost <sfr...@snowman.net> writes:
> * Xi Wang (xi.w...@gmail.com) wrote:
>> The correct NULL check should use `*newval'; `newval' must be non-null.

> Why isn't this using pstrdup()..?

The GUC API uses malloc, mainly because guc.c can't afford to lose
control on out-of-memory situations.

                        regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to