]> git.sur5r.net Git - openldap/commitdiff
cleanup "matched" output
authorPierangelo Masarati <ando@openldap.org>
Tue, 4 Apr 2006 00:04:39 +0000 (00:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 4 Apr 2006 00:04:39 +0000 (00:04 +0000)
tests/progs/slapd-common.c

index d7ab921a245eb6e7a6a730a3ef402988ce9ccfb9..bed9d05c256ee290ac1f39b30dc4d165a31882c6 100644 (file)
@@ -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;
        }