From b295d66a2c57f9272e32c8c121b633d3fa20cbb4 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 2 Aug 2005 10:57:42 +0000 Subject: [PATCH] assert expects int. (int) can be 0. Use assert(arg!=0/NULL). --- libraries/libldap/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5