]> git.sur5r.net Git - openldap/commitdiff
Silence warning (bv_len >= 0 is always true)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 19 Aug 2009 18:59:33 +0000 (18:59 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 19 Aug 2009 18:59:33 +0000 (18:59 +0000)
servers/slapd/overlays/accesslog.c

index fc12834ba9ed67d33a66720df646f9459a1133f1..8e5907e96a3e084c1b958ca1bab2d263fdf14aa1 100644 (file)
@@ -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? */