Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group