mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
This commit is contained in:
parent
c8bffb5584
commit
9d5308163c
@ -329,8 +329,8 @@ ID bdb_tool_entry_put(
|
||||
assert( be != NULL );
|
||||
assert( slapMode & SLAP_TOOL_MODE );
|
||||
|
||||
assert( text );
|
||||
assert( text->bv_val );
|
||||
assert( text != NULL );
|
||||
assert( text->bv_val != NULL );
|
||||
assert( text->bv_val[0] == '\0' ); /* overconservative? */
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "=> " LDAP_XSTRING(bdb_tool_entry_put)
|
||||
@ -526,8 +526,8 @@ ID bdb_tool_entry_modify(
|
||||
assert( be != NULL );
|
||||
assert( slapMode & SLAP_TOOL_MODE );
|
||||
|
||||
assert( text );
|
||||
assert( text->bv_val );
|
||||
assert( text != NULL );
|
||||
assert( text->bv_val != NULL );
|
||||
assert( text->bv_val[0] == '\0' ); /* overconservative? */
|
||||
|
||||
assert ( e->e_id != NOID );
|
||||
|
Loading…
Reference in New Issue
Block a user