mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
* nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
ISO C compliant.
This commit is contained in:
parent
e4eb675d0c
commit
e22c61fb6f
@ -1,3 +1,8 @@
|
||||
2007-06-22 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
|
||||
ISO C compliant.
|
||||
|
||||
2007-06-19 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* elf/dl-close.c (free_mem): Free _dl_scope_free_list.
|
||||
|
@ -32,10 +32,10 @@ __nis_domain_of (const_nis_name name)
|
||||
{
|
||||
const_nis_name cptr = strchr (name, '.');
|
||||
|
||||
if (cptr++ == NULL)
|
||||
if (cptr == NULL)
|
||||
return "";
|
||||
|
||||
if (*cptr == '\0')
|
||||
if (*++cptr == '\0')
|
||||
return ".";
|
||||
|
||||
return cptr;
|
||||
|
Loading…
Reference in New Issue
Block a user