]> git.sur5r.net Git - openldap/commitdiff
declarations must occur before instructions
authorPierangelo Masarati <ando@openldap.org>
Mon, 8 Mar 2004 11:01:52 +0000 (11:01 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 8 Mar 2004 11:01:52 +0000 (11:01 +0000)
servers/slapd/passwd.c

index 3364b90acd7dceacdcdd52eb79e3412702b080a3..fde6514a417cd47ea8440ae61b81c48e7427e835 100644 (file)
@@ -47,10 +47,11 @@ int passwd_extop(
        Operation op2;
        slap_callback cb = { NULL, slap_null_cb, NULL, NULL };
        slap_callback cb2 = { NULL, slap_replog_cb, NULL, NULL };
-       cb2.sc_next = &cb;
        int i, nhash;
        char **hashes;
 
+       cb2.sc_next = &cb;
+
        assert( ber_bvcmp( &slap_EXOP_MODIFY_PASSWD, &op->ore_reqoid ) == 0 );
 
        if( op->o_dn.bv_len == 0 ) {