From: Pierangelo Masarati Date: Mon, 28 Jun 2004 22:01:30 +0000 (+0000) Subject: trim useless code X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~160 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70af36dbf50d69e71ce6f3980dc0c8d8abeb94d9;p=openldap trim useless code --- diff --git a/servers/slapd/value.c b/servers/slapd/value.c index 18d06216e2..5295cd8330 100644 --- a/servers/slapd/value.c +++ b/servers/slapd/value.c @@ -215,8 +215,6 @@ value_match( const char ** text ) { int rc; - struct berval nv1 = BER_BVNULL; - struct berval nv2 = BER_BVNULL; assert( mr != NULL ); @@ -225,13 +223,8 @@ value_match( } rc = (mr->smr_match)( match, flags, - ad->ad_type->sat_syntax, - mr, - nv1.bv_val != NULL ? &nv1 : v1, - nv2.bv_val != NULL ? &nv2 : v2 ); + ad->ad_type->sat_syntax, mr, v1, v2 ); - if (nv1.bv_val ) free( nv1.bv_val ); - if (nv2.bv_val ) free( nv2.bv_val ); return rc; }