assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).

This commit is contained in:
Hallvard Furuseth 2005-08-02 10:57:42 +00:00
parent cc79022b71
commit b295d66a2c

View File

@ -305,7 +305,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb,
} }
if ( use_ldsb ) { if ( use_ldsb ) {
assert( ld->ld_sb ); assert( ld->ld_sb != NULL );
lc->lconn_sb = ld->ld_sb; lc->lconn_sb = ld->ld_sb;
} else { } else {