diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-04-28 21:56:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-04-28 21:56:46 +0000 |
commit | 390500b147a8063ea4be7313ec38cada26f9235a (patch) | |
tree | edf14c04a0a46992ce4c04eeaf604fab99a9d960 /inet/ether_line.c | |
parent | fbb9cc9129ae3efdb1652b175f57956033102876 (diff) | |
download | glibc-390500b147a8063ea4be7313ec38cada26f9235a.zip glibc-390500b147a8063ea4be7313ec38cada26f9235a.tar.gz glibc-390500b147a8063ea4be7313ec38cada26f9235a.tar.bz2 |
Update.
1999-04-28 Ulrich Drepper <drepper@cygnus.com>
* manager.c (pthread_allocate_stack): Optimize initialization of new
thread descriptor.
Diffstat (limited to 'inet/ether_line.c')
-rw-r--r-- | inet/ether_line.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/inet/ether_line.c b/inet/ether_line.c index 889be0a4..0911499 100644 --- a/inet/ether_line.c +++ b/inet/ether_line.c @@ -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'; |