HomeFreeBSD

asprintf returns -1, not an arbitrary value < 0. Also upon error the

Description

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.

Obtained from: OpenBSD
MFC after: 3 days

Details

Provenance
baptAuthored on
Parents
rS356723: mkstemp returns -1
Branches
Unknown
Tags
Unknown