mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
1999-04-28 Ulrich Drepper <drepper@cygnus.com> * manager.c (pthread_allocate_stack): Optimize initialization of new thread descriptor.
This commit is contained in:
@@ -1376,19 +1376,17 @@ argp_args_usage (const struct argp *argp, const struct argp_state *state,
|
||||
if (fdoc)
|
||||
{
|
||||
const char *cp = fdoc;
|
||||
nl = strchr (cp, '\n');
|
||||
if (nl)
|
||||
nl = __strchrnul (cp, '\n');
|
||||
if (*nl != '\0')
|
||||
/* This is a `multi-level' args doc; advance to the correct position
|
||||
as determined by our state in LEVELS, and update LEVELS. */
|
||||
{
|
||||
int i;
|
||||
multiple = 1;
|
||||
for (i = 0; i < *our_level; i++)
|
||||
cp = nl + 1, nl = strchr (cp, '\n');
|
||||
cp = nl + 1, nl = __strchrnul (cp, '\n');
|
||||
(*levels)++;
|
||||
}
|
||||
if (! nl)
|
||||
nl = cp + strlen (cp);
|
||||
|
||||
/* Manually do line wrapping so that it (probably) won't get wrapped at
|
||||
any embedded spaces. */
|
||||
|
||||
Reference in New Issue
Block a user