mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +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:
@ -62,9 +62,7 @@ ether_line (const char *line, struct ether_addr *addr, char *hostname)
|
||||
}
|
||||
|
||||
/* Remove trailing white space. */
|
||||
cp = strchr (line, '#');
|
||||
if (cp == NULL)
|
||||
cp = strchr (line, '\0');
|
||||
cp = __strchrnul (line, '#');
|
||||
while (cp > line && isspace (cp[-1]))
|
||||
--cp;
|
||||
*cp = '\0';
|
||||
|
Reference in New Issue
Block a user