From 2fe1eb921ddb17c80f53280b4d6f31fde5204a0f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 9 Mar 2004 07:08:04 +0000 Subject: [PATCH] cleanup --- servers/slapd/filter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index c258ca7e33..5d671ab77c 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -691,16 +691,18 @@ filter2bv_x( Operation *op, Filter *f, struct berval *fstr ) { int i; Filter *p; - struct berval tmp, + struct berval tmp; + static struct berval ber_bvfalse = BER_BVC( "(?=false)" ), ber_bvtrue = BER_BVC( "(?=true)" ), ber_bvundefined = BER_BVC( "(?=undefined)" ), ber_bverror = BER_BVC( "(?=error)" ), - ber_bvunknown = BER_BVC( "(?=unknown)" ); + ber_bvunknown = BER_BVC( "(?=unknown)" ), + ber_bvnone = BER_BVC( "(?=none)" ); ber_len_t len; if ( f == NULL ) { - ber_str2bv_x( "No filter!", sizeof("No filter!")-1, 1, fstr, op->o_tmpmemctx ); + ber_dupbv_x( fstr, &ber_bvnone, op->o_tmpmemctx ); return; }