Fix uninitialized var bug.

This commit is contained in:
Mark Valence 2000-06-09 06:45:14 +00:00
parent dc1e5a9392
commit 0715e29ae5

View File

@ -63,6 +63,9 @@ ldap_dn2ufn( LDAP_CONST char *dn )
return NULL;
}
if ( ( p = ldap_utf8_strpbrk( dn, "=" ) ) == NULL ) {
return( LDAP_STRDUP( dn ) );
}
ufn = LDAP_STRDUP( ++p );
if( ufn == NULL ) return NULL;