diff options
author | 2015-02-11 06:40:04 +0000 | |
---|---|---|
committer | 2015-02-11 06:40:04 +0000 | |
commit | 2172a86ffec0ade377c9f24d6c8bc03756d10c9c (patch) | |
tree | cd3ac45093cd226ec70dcb875c709d25a3bc2a78 /lib | |
parent | this doesnt need lockmgr. we dont need sys/lock.h (diff) | |
download | wireguard-openbsd-2172a86ffec0ade377c9f24d6c8bc03756d10c9c.tar.xz wireguard-openbsd-2172a86ffec0ade377c9f24d6c8bc03756d10c9c.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 'lib')
0 files changed, 0 insertions, 0 deletions