]> git.sur5r.net Git - openldap/commitdiff
coverity cleanup
authorHoward Chu <hyc@openldap.org>
Tue, 16 May 2006 22:16:27 +0000 (22:16 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 16 May 2006 22:16:27 +0000 (22:16 +0000)
servers/slapd/slapi/slapi_overlay.c

index 0fb616118fd5fc6adc2a2932e7fa28e2aeae7e48..12425f06c1067c83448ddf365822e1ec5af3cd56 100644 (file)
@@ -97,12 +97,14 @@ slapi_over_compute_output(
 {
        Attribute               **a;
        AttributeDescription    *desc;
-       SlapReply               *rs = (SlapReply *)c->cac_private;
+       SlapReply               *rs;
 
        if ( c == NULL || attribute == NULL || entry == NULL ) {
                return 0;
        }
 
+       rs = (SlapReply *)c->cac_private;
+
        assert( rs->sr_entry == entry );
 
        desc = attribute->a_desc;