Clean up at_find

This commit is contained in:
Kurt Zeilenga 2000-07-26 23:18:49 +00:00
parent 57deefc94f
commit f1d0813562

View File

@ -74,23 +74,12 @@ at_find(
const char *name
)
{
struct aindexrec *air;
char *tmpname;
struct aindexrec *air;
{
tmpname = (char *)name;
}
air = (struct aindexrec *) avl_find( attr_index, name,
(AVL_CMP) attr_index_name_cmp );
if ( (air = (struct aindexrec *) avl_find( attr_index, tmpname,
(AVL_CMP) attr_index_name_cmp )) != NULL ) {
if ( tmpname != name )
ldap_memfree( tmpname );
return( air->air_at );
}
if ( tmpname != name )
ldap_memfree( tmpname );
return( NULL );
return air != NULL ? air->air_at : NULL;
}
int