diff options
author | 2020-10-12 08:44:45 +0000 | |
---|---|---|
committer | 2020-10-12 08:44:45 +0000 | |
commit | 0d27d3d93b8449401d7b13daa48296bca2d83d33 (patch) | |
tree | d0a74a11f0cc40b2b93e8f7c5a0325dcce2a51ba /lib/libc/stdlib/malloc.c | |
parent | Zap unused family parameter from ssh_connect_direct() (diff) | |
download | wireguard-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