Thread: pgsql: Fix our version of strdup() to adhere to the standard semantics

pgsql: Fix our version of strdup() to adhere to the standard semantics

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Fix our version of strdup() to adhere to the standard semantics for
out-of-memory --- that is, return NULL rather than dumping core.
Noted by Qingqing Zhou.

Modified Files:
--------------
    pgsql/src/port:
        strdup.c (r1.7 -> r1.8)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/strdup.c.diff?r1=1.7&r2=1.8)