From: Kurt Zeilenga Date: Mon, 2 Dec 2002 18:46:53 +0000 (+0000) Subject: Remove extraneous empty check X-Git-Tag: NO_SLAP_OP_BLOCKS~742 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1edcd14a79502b829e74b6eb07b05e0ecf8fd488;p=openldap Remove extraneous empty check --- diff --git a/libraries/libldif/line64.c b/libraries/libldif/line64.c index 160e675b1b..94c3f9dd4b 100644 --- a/libraries/libldif/line64.c +++ b/libraries/libldif/line64.c @@ -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 ); }