From 428faea410451453a642143ffbfac3ca82695260 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 29 Jul 1999 23:05:15 +0000 Subject: [PATCH] Clarify loop break. --- libraries/libldif/line64.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 == '#' ); -- 2.39.5