ecpg: check for strdup() failure

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: ecpg: check for strdup() failure
Date: 2005-07-01 01:28:18
Message-ID: 42C49C32.2050704@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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.

Barring any objections I'll apply this to HEAD later today.

-Neil

Attachment Content-Type Size
ecpg_dt_common_fix-2.patch text/x-patch 1.2 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2005-07-01 02:02:09 ecpg: numeric_div error handling
Previous Message Dave Cramer 2005-07-01 00:53:51 Re: 2PC transaction id