if (cp2 != NULL && strlen (cp2) > 0)
if (cp2 != NULL && cp2[0] != '\0')
nis_verifygroup (const_nis_name group){  if (group != NULL && strlen (group) > 0)    {      char buf[strlen (group) + 50];      char leafbuf[strlen (group) + 2];      char domainbuf[strlen (group) + 2];      nis_result *res;      nis_error status;      char *cp, *cp2;      cp = stpcpy (buf, nis_leaf_of_r (group, leafbuf, sizeof (leafbuf) - 1));      cp = stpcpy (cp, ".groups_dir");      cp2 = nis_domain_of_r (group, domainbuf, sizeof (domainbuf) - 1);      if (cp2 != NULL && strlen (cp2) > 0)	{	  *cp++ = '.';	  stpcpy (cp, cp2);	}      res = nis_lookup (buf, 0);      status = NIS_RES_STATUS (res);      nis_freeresult (res);      return status;    }  else    return NIS_FAIL;}