diff options
author | miod <> | 2014-08-07 19:46:31 +0000 |
---|---|---|
committer | miod <> | 2014-08-07 19:46:31 +0000 |
commit | 15e8f255e119bc9bcc3d331677007d5263431e63 (patch) | |
tree | f63319cf5456a29e9fa85ebbd2f5e44de3fb4043 /src/lib/libc/stdlib/hcreate.c | |
parent | 4bcdac8281676ec72b23bb5dbfa6716fc392dfc1 (diff) | |
download | openbsd-15e8f255e119bc9bcc3d331677007d5263431e63.tar.gz openbsd-15e8f255e119bc9bcc3d331677007d5263431e63.tar.bz2 openbsd-15e8f255e119bc9bcc3d331677007d5263431e63.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/hcreate.c')
0 files changed, 0 insertions, 0 deletions