]> git.sur5r.net Git - openldap/commitdiff
Clarify loop break. OPENLDAP_REL_ENG_2_BP
authorKurt Zeilenga <kurt@openldap.org>
Thu, 29 Jul 1999 23:05:15 +0000 (23:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 29 Jul 1999 23:05:15 +0000 (23:05 +0000)
libraries/libldif/line64.c

index b279560917c4f3348e23a7179b010869cd0c5fa4..28936e1f762446b465e14dcf3c2b1fa307f3cfb6 100644 (file)
@@ -187,13 +187,14 @@ ldif_getline( char **next )
 
                while ( (*next = strchr( *next, '\n' )) != NULL ) {
                        unsigned char c = *(*next + 1);
-                       if ( isspace( c ) && c != '\n' ) {
-                               **next = CONTINUED_LINE_MARKER;
-                               *(*next+1) = CONTINUED_LINE_MARKER;
-                       } else {
+
+                       if ( !isspace( c ) || c == '\n' ) {
                                *(*next)++ = '\0';
                                break;
                        }
+
+                       **next = CONTINUED_LINE_MARKER;
+                       *(*next+1) = CONTINUED_LINE_MARKER;
                        (*next)++;
                }
        } while( *line == '#' );