From: Howard Chu Date: Mon, 10 Feb 2003 07:41:30 +0000 (+0000) Subject: Fix undef'd code for empty attributes. X-Git-Tag: NO_SLAP_OP_BLOCKS~379 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a667cd989b9e8350f1307301ecb153498c6725f3;p=openldap Fix undef'd code for empty attributes. --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index ee7611c6a4..67beac471e 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1313,7 +1313,7 @@ print_entry( { if (bv.bv_val == NULL) break; - if ( attrsonly ) { + if ( attrsonly || !bvals ) { write_ldif( LDIF_PUT_NOVALUE, bv.bv_val, NULL, 0 ); } else {