From: Kurt Zeilenga Date: Tue, 3 Dec 2002 22:52:30 +0000 (+0000) Subject: Fix logging bug X-Git-Tag: OPENLDAP_REL_ENG_2_1_9~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=91b4bfb259f93fcfd4e2f9dd5d22437977419138;p=openldap Fix logging bug --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 98f5842f8a..b07ad02b43 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -112,15 +112,13 @@ str2entry( char *s ) #ifdef NEW_LOGGING LDAP_LOG( OPERATION, DETAIL1, "str2entry: " "entry %ld has multiple DNs \"%s\" and \"%s\"\n", - (long) e->e_id, e->e_dn, - vals[0].bv_val != NULL ? vals[0].bv_val : "" ); + (long) e->e_id, e->e_dn, vals[0].bv_val ); #else Debug( LDAP_DEBUG_ANY, "str2entry: " "entry %ld has multiple DNs \"%s\" and \"%s\"\n", - (long) e->e_id, e->e_dn, - vals[0].bv_val != NULL ? vals[0].bv_val : "" ); + (long) e->e_id, e->e_dn, vals[0].bv_val ); #endif - if( vals[0].bv_val != NULL ) free( vals[0].bv_val ); + free( vals[0].bv_val ); entry_free( e ); return NULL; }