pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to - Mailing list pgsql-committers

From neilc@svr1.postgresql.org (Neil Conway)
Subject pgsql: Minor ecpg tweak: the return value of calloc() is guaranteed to
Date
Msg-id 20050630072732.59DC052A17@svr1.postgresql.org
Whole thread Raw
List 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:

Previous
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Warning cleanups for ecpg tests.
Next
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - be: Don't list_free_deep as it seems to be naughty here(?).