]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/config.c
Rework ac/socket.h for HAVE_WINSOCK:
[openldap] / servers / slapd / config.c
index a62d7f11b4821a497bdf08e026155deba07f4d8d..b02313b5cea80a278d19228788c011051459f7c5 100644 (file)
@@ -514,7 +514,7 @@ read_config( char *fname )
                /* pass anything else to the current backend info/db config routine */
                } else {
                        if ( bi != NULL ) {
-                               if (bi->bi_config == NULL) {
+                               if ( bi->bi_config == 0 ) {
                                        Debug( LDAP_DEBUG_ANY,
 "%s: line %d: unknown directive \"%s\" inside backend info definition (ignored)\n",
                                                fname, lineno, cargv[0] );
@@ -526,7 +526,7 @@ read_config( char *fname )
                                        }
                                }
                        } else if ( be != NULL ) {
-                               if ( be->be_config == NULL ) {
+                               if ( be->be_config == 0 ) {
                                        Debug( LDAP_DEBUG_ANY,
 "%s: line %d: unknown directive \"%s\" inside backend database definition (ignored)\n",
                                        fname, lineno, cargv[0] );
@@ -603,11 +603,10 @@ strtok_quote( char *line, char *sep )
                        break;
 
                case '\\':
-                       if ( next[1] ) {
+                       if ( next[1] )
                                SAFEMEMCPY( next,
                                            next + 1, strlen( next + 1 ) + 1 );
-                               next++; /* dont parse the escaped character */
-                       }
+                       next++;         /* dont parse the escaped character */
                        break;
 
                default: