* src/gnc-module/gnc-module.c (gnc_module_system_init): add some

error checking -- may need a way to return errors.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5605 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning 2001-10-14 17:43:43 +00:00
parent 05a9599044
commit 4f20970549

View File

@ -130,17 +130,23 @@ gnc_module_system_setup_load_path(void)
void
gnc_module_system_init(void)
{
if(loaded_modules == NULL)
{
loaded_modules = g_hash_table_new(g_direct_hash, g_direct_equal);
lt_dlinit();
gnc_module_system_setup_load_path();
if(lt_dlinit() == 0)
{
gnc_module_system_setup_load_path();
/* now crawl the GNC_MODULE_PATH to find likely libraries */
gnc_module_system_refresh();
/* now crawl the GNC_MODULE_PATH to find likely libraries */
gnc_module_system_refresh();
}
else
{
/* FIXME: there's no way to report this error to the caller. */
g_warning ("gnc module system couldn't initialize libltdl");
}
}
}