Commit 428faea4 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Clarify loop break.

parent 17a975b6
...@@ -187,13 +187,14 @@ ldif_getline( char **next ) ...@@ -187,13 +187,14 @@ ldif_getline( char **next )
while ( (*next = strchr( *next, '\n' )) != NULL ) { while ( (*next = strchr( *next, '\n' )) != NULL ) {
unsigned char c = *(*next + 1); unsigned char c = *(*next + 1);
if ( isspace( c ) && c != '\n' ) {
**next = CONTINUED_LINE_MARKER; if ( !isspace( c ) || c == '\n' ) {
*(*next+1) = CONTINUED_LINE_MARKER;
} else {
*(*next)++ = '\0'; *(*next)++ = '\0';
break; break;
} }
**next = CONTINUED_LINE_MARKER;
*(*next+1) = CONTINUED_LINE_MARKER;
(*next)++; (*next)++;
} }
} while( *line == '#' ); } while( *line == '#' );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment