Fix rev 1.403 (ITS#6428): C90 does not accept mixed declarations and code

This commit is contained in:
Hallvard Furuseth 2009-12-10 19:53:10 +00:00
parent 8133ec8b21
commit 904ba0d317

View file

@ -2256,11 +2256,12 @@ ok:
* the other databases as needed */
AttributeDescription *ad=NULL;
const char *text = NULL;
CfEntryInfo *ce = c->ca_entry->e_private;
slap_str2ad(c->argv[0], &ad, &text);
/* if we got here... */
assert( ad != NULL );
CfEntryInfo *ce = c->ca_entry->e_private;
if ( ce->ce_type == Cft_Global ){
ce = ce->ce_kids;
}