/* Find the top backend for this subordinate */
be = b0;
- while ( be=LDAP_STAILQ_NEXT( be, be_next )) {
+ while ( (be=LDAP_STAILQ_NEXT( be, be_next )) != NULL ) {
slap_overinfo *oi;
slap_overinst *on;
glueinfo *gi;
/* Find the top backend for this subordinate */
be = ga->ga_be;
- while ( be=LDAP_STAILQ_NEXT( be, be_next )) {
+ while ( (be=LDAP_STAILQ_NEXT( be, be_next )) != NULL ) {
slap_overinfo *oi;
slap_overinst *on;
glueinfo *gi;