From e45d11b42ff43e2ce851bf50f0575fff6cdc7627 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 4 Apr 2006 00:04:39 +0000 Subject: [PATCH] cleanup "matched" output --- tests/progs/slapd-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/progs/slapd-common.c b/tests/progs/slapd-common.c index d7ab921a24..bed9d05c25 100644 --- a/tests/progs/slapd-common.c +++ b/tests/progs/slapd-common.c @@ -73,7 +73,9 @@ tester_ldap_error( LDAP *ld, const char *fname ) ldap_get_option( ld, LDAP_OPT_MATCHED_DN, (void *)&text ); if ( text != NULL ) { - fprintf( stderr, "\tmatched: %s\n", text ); + if ( text[ 0 ] != '\0' ) { + fprintf( stderr, "\tmatched: %s\n", text ); + } ldap_memfree( text ); text = NULL; } -- 2.39.5