From: Hallvard Furuseth Date: Tue, 2 Aug 2005 10:57:42 +0000 (+0000) Subject: assert expects int. (int) can be 0. Use assert(arg!=0/NULL). X-Git-Tag: OPENLDAP_AC_BP~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b295d66a2c57f9272e32c8c121b633d3fa20cbb4;p=openldap assert expects int. (int) can be 0. Use assert(arg!=0/NULL). --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index cd72f76af9..637fbea859 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -305,7 +305,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb, } if ( use_ldsb ) { - assert( ld->ld_sb ); + assert( ld->ld_sb != NULL ); lc->lconn_sb = ld->ld_sb; } else {