]> git.sur5r.net Git - openldap/commitdiff
Fix logging bug
authorKurt Zeilenga <kurt@openldap.org>
Tue, 3 Dec 2002 22:52:30 +0000 (22:52 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 3 Dec 2002 22:52:30 +0000 (22:52 +0000)
servers/slapd/entry.c

index 98f5842f8a45e66f9544ee3430d512900406c6dd..b07ad02b4327eb73e0aa5e43109e1757d5fc864b 100644 (file)
@@ -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;
                        }