More debug msg null pointer checks

This commit is contained in:
Howard Chu 2011-11-09 15:34:53 -08:00
parent 52a0d00031
commit 3b2961fcc2
2 changed files with 4 additions and 4 deletions

View File

@ -496,7 +496,7 @@ mdb_index_entry(
Debug( LDAP_DEBUG_TRACE, "=> index_entry_%s( %ld, \"%s\" )\n",
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
(long) e->e_id, e->e_dn );
(long) e->e_id, e->e_dn ? e->e_dn : "" );
/* add each attribute to the indexes */
for ( ; ap != NULL; ap = ap->a_next ) {
@ -569,7 +569,7 @@ mdb_index_entry(
Debug( LDAP_DEBUG_TRACE, "<= index_entry_%s( %ld, \"%s\" ) success\n",
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
(long) e->e_id, e->e_dn );
(long) e->e_id, e->e_dn ? e->e_dn : "" );
return LDAP_SUCCESS;
}

View File

@ -805,8 +805,8 @@ int mdb_tool_entry_reindex(
*/
Debug( LDAP_DEBUG_TRACE,
"=> " LDAP_XSTRING(mdb_tool_entry_reindex) "( %ld, \"%s\" )\n",
(long) id, e->e_dn, 0 );
"=> " LDAP_XSTRING(mdb_tool_entry_reindex) "( %ld )\n",
(long) id, 0, 0 );
op.o_hdr = &ohdr;
op.o_bd = be;