ITS#9308 - ensure "i" is initialized

This commit is contained in:
Quanah Gibson-Mount 2020-08-05 23:06:49 +00:00
parent 9688f032c5
commit 1b3fcd4e75

View File

@ -336,7 +336,7 @@ do_oc:;
ObjectClass *oc;
for ( oc_start( &oc ); oc != NULL; oc_next( &oc ) ) {
for ( i = 0, oc_start( &oc ); oc != NULL; oc_next( &oc ) ) {
/* we can only add AUXILIARY objectClasses */
if ( oc->soc_kind != LDAP_SCHEMA_AUXILIARY ) {
continue;