From 1edcd14a79502b829e74b6eb07b05e0ecf8fd488 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 2 Dec 2002 18:46:53 +0000 Subject: [PATCH] Remove extraneous empty check --- libraries/libldif/line64.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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 ); } -- 2.39.5