diff options
author | miod <> | 2015-02-11 06:40:04 +0000 |
---|---|---|
committer | miod <> | 2015-02-11 06:40:04 +0000 |
commit | 01fabf00f34c0ca7466352b13f7071a4170301fc (patch) | |
tree | 470f3b7cf86d73904926240149bf79bf91d98e75 /src/lib | |
parent | 74b6aedb7d6d115e1fa81e96806190a780392341 (diff) | |
download | openbsd-01fabf00f34c0ca7466352b13f7071a4170301fc.tar.gz openbsd-01fabf00f34c0ca7466352b13f7071a4170301fc.tar.bz2 openbsd-01fabf00f34c0ca7466352b13f7071a4170301fc.zip |
Do not rely upon malloc(0) not returning NULL. Not all malloc implementations
have this property.
Instead, skip the malloc and memcmp if their size is zero.
Per bcook@ request in order to run on AIX
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions