From: Mark Valence Date: Fri, 9 Jun 2000 06:45:14 +0000 (+0000) Subject: Fix uninitialized var bug. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2685 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0715e29ae5a33f199a37db54302d2d35ff9e1664;p=openldap Fix uninitialized var bug. --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 20f1882cf5..0d8b488e19 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -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;