diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-06-22 17:01:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-06-22 17:01:29 +0000 |
commit | e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99 (patch) | |
tree | c91d40e79126d0e530f79bdf9f4388754b6b1a7c /nis | |
parent | e4eb675d0caf19581b69fd41e9fa29ecc7f22d23 (diff) | |
download | glibc-e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99.tar glibc-e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99.tar.gz glibc-e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99.tar.bz2 glibc-e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99.zip |
* nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
ISO C compliant.
Diffstat (limited to 'nis')
-rw-r--r-- | nis/nis_domain_of.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nis_domain_of.c b/nis/nis_domain_of.c index 4d6b48640e..6f41b92bf7 100644 --- a/nis/nis_domain_of.c +++ b/nis/nis_domain_of.c @@ -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; |