Skip to content

Commit

Permalink
* nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
Browse files Browse the repository at this point in the history
	ISO C compliant.
  • Loading branch information
Ulrich Drepper committed Jun 22, 2007
1 parent e4eb675 commit e22c61f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions nis/nis_domain_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e22c61f

Please sign in to comment.