From: Hallvard Furuseth Date: Wed, 19 Aug 2009 18:59:33 +0000 (+0000) Subject: Silence warning (bv_len >= 0 is always true) X-Git-Tag: ACLCHECK_0~269 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4b6f2de8ab955514a8c12c47746e54c32b50b6a4;p=openldap Silence warning (bv_len >= 0 is always true) --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index fc12834ba9..8e5907e96a 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1260,7 +1260,7 @@ static Entry *accesslog_entry( Operation *op, SlapReply *rs, int logop, } rdn.bv_len = snprintf( rdn.bv_val, sizeof( rdnbuf ), "%lu", op->o_connid ); - if ( rdn.bv_len >= 0 || rdn.bv_len < sizeof( rdnbuf ) ) { + if ( rdn.bv_len < sizeof( rdnbuf ) ) { attr_merge_one( e, ad_reqSession, &rdn, NULL ); } /* else? */