]> granicus.if.org Git - postgresql/commit
Minor ecpg tweak: the return value of calloc() is guaranteed to be NULL
authorNeil Conway <neilc@samurai.com>
Thu, 30 Jun 2005 07:27:31 +0000 (07:27 +0000)
committerNeil Conway <neilc@samurai.com>
Thu, 30 Jun 2005 07:27:31 +0000 (07:27 +0000)
commit117fde2d1745c64c514db697b126350f7acf61a6
tree9b812c870153ac9d3a5d3ed06ab20044a768e7fe
parent4802bb57a6d5331f32bc14bb196e397021fece1c
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.)
src/interfaces/ecpg/pgtypeslib/common.c