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

Neil Conway <neilc@samurai.com>

Commit: 117fde2d1745c64c514db697b126350f7acf61a6
Author: Neil Conway <neilc@samurai.com>
Date: 2005-06-30T07:27:31Z
Releases: 8.1.0
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.)

Files

PathChange+/−
src/interfaces/ecpg/pgtypeslib/common.c modified +1 −5