Re: ecpg: check for strdup() failure - Mailing list pgsql-patches

From Neil Conway
Subject Re: ecpg: check for strdup() failure
Date
Msg-id 42C4D127.8050807@samurai.com
Whole thread Raw
In response to ecpg: check for strdup() failure  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway wrote:
> Attached is a trivial improvement to ecpg's pgtypeslib: (1) `pstr' must
> be non-NULL in this function, so no need to check for it (2) we should
> check the return value of pgtypes_strdup(). Patch from Eric Astor at
> EDB, with slight cleanup by myself, to fix a Coverity report.

Applied.

-Neil

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: ecpg: numeric_div error handling
Next
From: Satoshi Nagayasu
Date:
Subject: enable/disable trigger (Re: Fwd: [HACKERS] Open items)