From e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 22 Jun 2007 17:01:29 +0000 Subject: * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more ISO C compliant. --- nis/nis_domain_of.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nis') 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; -- cgit 1.4.1