From: Kurt Zeilenga Date: Thu, 29 Jul 1999 23:05:15 +0000 (+0000) Subject: Clarify loop break. X-Git-Tag: OPENLDAP_REL_ENG_2_BP X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=428faea410451453a642143ffbfac3ca82695260;p=openldap Clarify loop break. --- diff --git a/libraries/libldif/line64.c b/libraries/libldif/line64.c index b279560917..28936e1f76 100644 --- a/libraries/libldif/line64.c +++ b/libraries/libldif/line64.c @@ -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 == '#' );