]> git.sur5r.net Git - openldap/commitdiff
Remove extraneous empty check
authorKurt Zeilenga <kurt@openldap.org>
Mon, 2 Dec 2002 18:46:53 +0000 (18:46 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 2 Dec 2002 18:46:53 +0000 (18:46 +0000)
libraries/libldif/line64.c

index 160e675b1b549b8521ea070079dcb51ea479a551..94c3f9dd4b46e7d5ff5daa38ebea1a898e61c945 100644 (file)
@@ -114,13 +114,7 @@ ldif_parse_line(
        url = 0;
        b64 = 0;
 
-       if ( *s == '\0' ) {
-               /* no value */
-               value = "";
-               vlen = 0;
-               goto done;
-
-       } else if ( *s == '<' ) {
+       if ( *s == '<' ) {
                s++;
                url = 1;
 
@@ -226,8 +220,7 @@ done:
        if( type == NULL ) {
                ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
                        "ldif_parse_line: type malloc failed\n");
-               if( url )
-                       ber_memfree( value );
+               if( url ) ber_memfree( value );
                ber_memfree( freeme );
                return( -1 );
        }