From e22c61fb6f1cb8b29ec5ee1df2ab55caf6d47a99 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 22 Jun 2007 17:01:29 +0000 Subject: [PATCH] * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more ISO C compliant. --- ChangeLog | 5 +++++ nis/nis_domain_of.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5de43cb370..fb25d0c15e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-22 Ulrich Drepper + + * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more + ISO C compliant. + 2007-06-19 Ulrich Drepper * elf/dl-close.c (free_mem): Free _dl_scope_free_list. 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; -- 2.43.5