summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authormiod <>2014-08-07 19:46:31 +0000
committermiod <>2014-08-07 19:46:31 +0000
commit52fafe121652f8c5058ec964bbbf0d342db8037c (patch)
treef63319cf5456a29e9fa85ebbd2f5e44de3fb4043 /src/lib/libc/stdlib
parentd262467c46607aa30800e41ec750692ff8571476 (diff)
downloadopenbsd-52fafe121652f8c5058ec964bbbf0d342db8037c.tar.gz
openbsd-52fafe121652f8c5058ec964bbbf0d342db8037c.tar.bz2
openbsd-52fafe121652f8c5058ec964bbbf0d342db8037c.zip
When you expect a function to return a particular value, don't put a comment
saying that you expect it to return that value and compare it against zero because it is supposedly faster, for this leads to bugs (especially given the high rate of sloppy cut'n'paste within ssl3 and dtls1 routines in this library). Instead, compare for the exact value it ought to return upon success. ok deraadt@
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions