mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fixed last commit. gcc was complaining about defined behavior.
This commit is contained in:
parent
3b2cef17eb
commit
81dcd3ca58
@ -357,9 +357,9 @@ unregister_supported_control( const char *controloid )
|
||||
|
||||
for ( i = 0; slap_known_controls[ i ]; i++ ) {
|
||||
if ( strcmp( controloid, slap_known_controls[ i ] ) == 0 ) {
|
||||
while ( slap_known_controls[i] ) {
|
||||
slap_known_controls[i++] = slap_known_controls[i];
|
||||
}
|
||||
do {
|
||||
slap_known_controls[ i ] = slap_known_controls[ i+1 ];
|
||||
} while ( slap_known_controls[ i++ ] );
|
||||
num_known_controls--;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user