From: Hallvard Furuseth Date: Tue, 19 Jul 2005 05:03:12 +0000 (+0000) Subject: assert expects int. (int) can be 0. Use assert(arg!=0/NULL). X-Git-Tag: OPENLDAP_AC_BP~344 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d5308163cfc143919552d45968a9872721b48bc;p=openldap assert expects int. (int) can be 0. Use assert(arg!=0/NULL). --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index b4be34d677..73d26a251a 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -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 );