From: Quanah Gibson-Mount Date: Fri, 16 Apr 2010 23:13:02 +0000 (+0000) Subject: Silence warning (bv_len >= 0 is always true) X-Git-Tag: OPENLDAP_REL_ENG_2_4_22~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e68c2c546d84ad1f7d1a414be4922656bdb3d14;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 75296693e3..df7c9573a4 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1262,7 +1262,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? */