# HG changeset patch # User Sebastien Decugis # Date 1368689153 -28800 # Node ID 7ef8ab1d664f300fb5ad8f102c8b2fdafa609518 # Parent 3ae22e5dc56ca622b1c0fd7c876a5520f4999dd5 Delay the initialization of some dictionary definitions after extensions are loaded, so that these defintions may be altered by some extension in special setup environment diff -r 3ae22e5dc56c -r 7ef8ab1d664f libfdcore/core.c --- a/libfdcore/core.c Thu May 16 15:13:55 2013 +0800 +++ b/libfdcore/core.c Thu May 16 15:25:53 2013 +0800 @@ -221,7 +221,6 @@ /* Initialize some modules */ CHECK_FCT( fd_hooks_init() ); CHECK_FCT( fd_queues_init() ); - CHECK_FCT( fd_msg_init() ); CHECK_FCT( fd_sess_start() ); CHECK_FCT( fd_p_expi_init() ); @@ -268,6 +267,10 @@ free(buf); + /* Since some extensions might have modified the definitions from the dict_base_protocol, we only load the objects now */ + CHECK_FCT( fd_msg_init() ); + + /* Ok, ready for next step */ core_state_set(CORE_CONF_READY); return 0;