From 4b6f2de8ab955514a8c12c47746e54c32b50b6a4 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 19 Aug 2009 18:59:33 +0000 Subject: [PATCH] Silence warning (bv_len >= 0 is always true) --- servers/slapd/overlays/accesslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? */ -- 2.39.5