Fix some minor infelicities in ecpg's pgtypeslib: (1) `pstr' must be

Neil Conway <neilc@samurai.com>

Commit: 9fad4cb6047db0a0bfe0e183b046a7d87b810a74
Author: Neil Conway <neilc@samurai.com>
Date: 2005-07-01T05:12:06Z
Releases: 8.1.0
Fix some minor infelicities in ecpg's pgtypeslib: (1) `pstr' must be
non-NULL in this function, so there is no need to check for it (2) we
should check the return value of pgtypes_strdup(). Patch from Eric
Astor at EnterpriseDB, with slight cleanup by myself, per a report
from the Coverity tool.

Files

PathChange+/−
src/interfaces/ecpg/pgtypeslib/dt_common.c modified +5 −4