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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3772975f308c430d392bae3f0c3c4d68966d26d2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-09-27T04:53:23Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/port/strdup.c modified +5 −3