]> git.sur5r.net Git - openldap/commitdiff
Minor change to last commit...
authorKurt Zeilenga <kurt@openldap.org>
Tue, 25 Sep 2001 19:50:46 +0000 (19:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 25 Sep 2001 19:50:46 +0000 (19:50 +0000)
libraries/libldif/line64.c

index a3eabb88c3a4524f4d8da8b932cc499b4d1b0ba3..626dc6f556f542ff006d7c00dcf07486dd21e0bf 100644 (file)
@@ -280,16 +280,12 @@ ldif_getline( char **next )
                        }
 #endif
 
-                       if ( (*next)[1] == '\r' ) {
-                               if( (*next)[2] == '\n' ) {
+                       if ( (*next)[1] != ' ' ) {
+                               if ( (*next)[1] == '\r' && (*next)[2] == '\n' ) {
                                        *(*next)++ = '\0';
                                }
                                *(*next)++ = '\0';
                                break;
-                               
-                       } else if ( (*next)[1] != ' ' ) {
-                               *(*next)++ = '\0';
-                               break;
                        }
 
                        **next = CONTINUED_LINE_MARKER;