]> git.sur5r.net Git - openldap/commitdiff
Fix uninit (coverity)
authorHoward Chu <hyc@openldap.org>
Sun, 8 Oct 2006 00:31:08 +0000 (00:31 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 8 Oct 2006 00:31:08 +0000 (00:31 +0000)
servers/slapd/back-monitor/thread.c

index 5898070a62fdd86cf3a1016e66a121dbb4d88653..4e307beccd5679e9e329d9b1abef3fda72267f9e 100644 (file)
@@ -201,11 +201,11 @@ monitor_subsys_thread_update(
 
        for ( i = 0; !BER_BVISNULL( &mt[ i ].nrdn ); i++ ) {
                if ( dn_match( &mt[ i ].nrdn, &rdn ) ) {
-                       which = i;
                        break;
                }
        }
 
+       which = i;
        if ( BER_BVISNULL( &mt[ which ].nrdn ) ) {
                return SLAP_CB_CONTINUE;
        }