]> git.sur5r.net Git - openldap/commitdiff
Fix rev 1.403 (ITS#6428): C90 does not accept mixed declarations and code
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 10 Dec 2009 19:53:10 +0000 (19:53 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 10 Dec 2009 19:53:10 +0000 (19:53 +0000)
servers/slapd/bconfig.c

index 03b107f794bfa0a9d409da4f3ef7438158580f2c..a04a33ad6d99413defc35f2f7496d7e7c5cf25ac 100644 (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;
                }