/* known controls */
for ( j = 0; tool_ctrl_response[j].oid != NULL; j++ ) {
if ( strcmp( tool_ctrl_response[j].oid, ctrls[i]->ldctl_oid ) == 0 ) {
- if ( !tool_ctrl_response[j].mask & tool_type ) {
+ if ( !(tool_ctrl_response[j].mask & tool_type )) {
/* this control should not appear
* with this tool; warning? */
}
* or if filter parsing fails.
* In the latter case,
* we should give up. */
- if ( ludp->lud_filter != NULL && ludp->lud_filter != '\0') {
+ if ( ludp->lud_filter != NULL && *ludp->lud_filter != '\0') {
filter = str2filter_x( op, ludp->lud_filter );
if ( filter == NULL ) {
/* give up... */
}
if ( ap.restrict_lud->lud_attrs != NULL ) {
- if ( ap.restrict_lud->lud_attrs[0] != '\0' ) {
+ if ( ap.restrict_lud->lud_attrs[0] != NULL ) {
snprintf( c->cr_msg, sizeof( c->cr_msg ),
"%s %s: attrs not allowed in restrict URI %s\n",
c->argv[0], c->argv[1], arg);
}
assert( (*lsei)->lsei_values != NULL );
- if ( (*lsei)->lsei_values[0] == '\0'
- || (*lsei)->lsei_values[1] != '\0' )
+ if ( (*lsei)->lsei_values[0] == NULL
+ || (*lsei)->lsei_values[1] != NULL )
{
Debug( LDAP_DEBUG_ANY, "syn_add(%s): exactly one substitute syntax must be present\n",
ssyn->ssyn_syn.syn_oid, 0, 0 );