summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-02-11 06:40:04 +0000
committermiod <miod@openbsd.org>2015-02-11 06:40:04 +0000
commit2172a86ffec0ade377c9f24d6c8bc03756d10c9c (patch)
treecd3ac45093cd226ec70dcb875c709d25a3bc2a78 /lib/libc
parentthis doesnt need lockmgr. we dont need sys/lock.h (diff)
downloadwireguard-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/libc')
0 files changed, 0 insertions, 0 deletions