summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/exit.c
diff options
context:
space:
mode:
authortb <>2023-09-05 14:59:00 +0000
committertb <>2023-09-05 14:59:00 +0000
commit7e2eed9aad34ceb1fe6be665c6ac8c8f862f3ea2 (patch)
tree22da69dcececfe6528bc1a64fc0198f16e0c9897 /src/lib/libc/stdlib/exit.c
parent19bc61edd255de4fdb63f93e51a2fc4806d43588 (diff)
downloadopenbsd-7e2eed9aad34ceb1fe6be665c6ac8c8f862f3ea2.tar.gz
openbsd-7e2eed9aad34ceb1fe6be665c6ac8c8f862f3ea2.tar.bz2
openbsd-7e2eed9aad34ceb1fe6be665c6ac8c8f862f3ea2.zip
Improve error handling in OBJ_add_object()
There is no need for a helper function to obfuscate lh_ADDED_OBJ_new(). Just call the real thing directly. Adding an object with a NID of NID_undef basically amounts to disabling a built-in OID. It does so in an incoherent fashion and the caller can't easily tell success from failure of the operation. Arguably the result is a corrupted objects table. Let's not allow adding such an object in an attempt at keeping things slightly more coherent. Issue noted and initial diff by schwarze while writing documentation ok schwarze
Diffstat (limited to 'src/lib/libc/stdlib/exit.c')
0 files changed, 0 insertions, 0 deletions