diff options
author | 2019-06-28 05:44:09 +0000 | |
---|---|---|
committer | 2019-06-28 05:44:09 +0000 | |
commit | 7d5bbbe355add9c0be6e56c06f1818bf2448d48c (patch) | |
tree | 6c42284d37e7d3cc246c5d1019a9695b374f2df7 /lib/libc/stdlib/malloc.c | |
parent | mkstemp() returns -1 on failure (diff) | |
download | wireguard-openbsd-7d5bbbe355add9c0be6e56c06f1818bf2448d48c.tar.xz wireguard-openbsd-7d5bbbe355add9c0be6e56c06f1818bf2448d48c.zip |
asprintf returns -1, not an arbitrary value < 0. Also upon error the
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.
discussed a little with nicm, and then much more with millert until we
were exasperated
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions