summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-10-12 08:44:45 +0000
committermpi <mpi@openbsd.org>2020-10-12 08:44:45 +0000
commit0d27d3d93b8449401d7b13daa48296bca2d83d33 (patch)
treed0a74a11f0cc40b2b93e8f7c5a0325dcce2a51ba /lib/libc/stdlib/malloc.c
parentZap unused family parameter from ssh_connect_direct() (diff)
downloadwireguard-openbsd-0d27d3d93b8449401d7b13daa48296bca2d83d33.tar.xz
wireguard-openbsd-0d27d3d93b8449401d7b13daa48296bca2d83d33.zip
Use KASSERT() instead of if(x) panic() for NULL dereference checks.
Improves readability and reduces the difference with NetBSD without compromising debuggability on RAMDISK. While here also use local variables to help with future locking and reference counting. ok semarie@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions