]> git.sur5r.net Git - openldap/commitdiff
Fix initialization bug
authorKurt Zeilenga <kurt@openldap.org>
Thu, 15 Jun 2000 17:12:53 +0000 (17:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 15 Jun 2000 17:12:53 +0000 (17:12 +0000)
servers/slapd/compare.c

index a26c49741cf65ba11394ce0e4db25958f6aa86d4..821281aa374454f7cc02d6bf38ceee3552b2efed 100644 (file)
@@ -39,6 +39,7 @@ do_compare(
        int rc = LDAP_SUCCESS;
        const char *text = NULL;
 
+       ava.aa_desc = NULL;
        desc.bv_val = NULL;
        value.bv_val = NULL;
 
@@ -93,7 +94,6 @@ do_compare(
                goto cleanup;
        }
 
-       ava.aa_desc = NULL;
        rc = slap_bv2ad( &desc, &ava.aa_desc, &text );
        if( rc != LDAP_SUCCESS ) {
                send_ldap_result( conn, op, rc, NULL,