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.
So, I'm updating this manpage example section.
Paths
| Differential D15594 Authored by araujo on May 28 2018, 4:24 AM.
Details Summary As many people has pointed out, using assert(3) shall be not the best So, I'm updating this manpage example section.
Diff Detail
Event TimelineHerald added a reviewer: manpages. · View Herald TranscriptMay 28 2018, 4:24 AM2018-05-28 04:24:44 (UTC+0) Harbormaster completed remote builds in B16875: Diff 43059.May 28 2018, 4:24 AM2018-05-28 04:24:49 (UTC+0) Comment Actions Thanks for doing this... Others in the tree if you feel inclined, otherwise a bug might be in order so we don't lose it. /crypto/heimdal/doc/doxyout/krb5/man/man3/krb5_support.3: assert(s == NULL); This revision is now accepted and ready to land.May 28 2018, 4:52 AM2018-05-28 04:52:32 (UTC+0) Comment Actions
Hi, Yes, I'm inclined to do this clean up and we all can avoid confusion in the future. Thanks, Closed by commit rS334275: Update strsep(3) EXAMPLE section regards the usage of assert(3). (authored by araujo). · Explain WhyMay 28 2018, 5:01 AM2018-05-28 05:01:59 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 43061 head/lib/libc/string/strsep.3
|