Re: ecpg: check for strdup() failure

From: Neil Conway <neilc(at)samurai(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: ecpg: check for strdup() failure
Date: 2005-07-01 05:14:15
Message-ID: 42C4D127.8050807@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2005-07-01 05:14:29 Re: ecpg: numeric_div error handling
Previous Message Oliver Jowett 2005-07-01 03:56:59 Re: 2PC transaction id