HomeFreeBSD

Update strsep(3) EXAMPLE section regards the usage of assert(3).

Description

Update strsep(3) EXAMPLE section regards the usage of assert(3).

As many people has pointed out, using assert(3) shall be not the best approach
to verify if strdup(3) has allocated memory to string.

Reviewed by: imp
MFC after: 4 weeks.
Sponsored by: iXsystems Inc.
Differential Revision: https://reviews.freebsd.org/D15594

Details

Provenance
araujoAuthored on
Reviewer
imp
Differential Revision
D15594: Update strsetp(3) EXAMPLE section.
Parents
rS334274: Eliminate duplicate assertions. We assert at the start of vm_fault_hold()
Branches
Unknown
Tags
Unknown