]> git.sur5r.net Git - openldap/commitdiff
Fix previous change to strtok_quote
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 23 Feb 1999 15:48:47 +0000 (15:48 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 23 Feb 1999 15:48:47 +0000 (15:48 +0000)
servers/slapd/config.c
servers/slurpd/config.c

index a62d7f11b4821a497bdf08e026155deba07f4d8d..74560b5a46ba50005f03db59c44a0e57ce272aa7 100644 (file)
@@ -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:
index 2dc50aa357fd087578bc391e4c512c900433df76..247910bfccf9de6ea317386178d83242da36a901 100644 (file)
@@ -177,10 +177,9 @@ strtok_quote(
            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: