pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to
Date: 2005-06-30 07:27:32
Message-ID: 20050630072732.59DC052A17@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Minor ecpg tweak: the return value of calloc() is guaranteed to be NULL
or zero-filled; therefore zero-filling it via memset() is pointless.
(I think setting `errno' is probably a waste of cycles as well, but I
haven't changed that.)

Modified Files:
--------------
pgsql/src/interfaces/ecpg/pgtypeslib:
common.c (r1.10 -> r1.11)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/pgtypeslib/common.c.diff?r1=1.10&r2=1.11)

Browse pgsql-committers by date

  From Date Subject
Next Message James William Pye 2005-06-30 07:59:00 python - be: Don't list_free_deep as it seems to be naughty here(?).
Previous Message Neil Conway 2005-06-30 07:08:59 pgsql: Warning cleanups for ecpg tests.