From: Kurt Zeilenga Date: Thu, 15 Jun 2000 17:12:53 +0000 (+0000) Subject: Fix initialization bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2636 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45f4839578fa9d3360f6c8392516941211e42884;p=openldap Fix initialization bug --- diff --git a/servers/slapd/compare.c b/servers/slapd/compare.c index a26c49741c..821281aa37 100644 --- a/servers/slapd/compare.c +++ b/servers/slapd/compare.c @@ -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,