mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
parent
05a9599044
commit
4f20970549
@ -130,17 +130,23 @@ gnc_module_system_setup_load_path(void)
|
|||||||
|
|
||||||
void
|
void
|
||||||
gnc_module_system_init(void)
|
gnc_module_system_init(void)
|
||||||
|
|
||||||
{
|
{
|
||||||
if(loaded_modules == NULL)
|
if(loaded_modules == NULL)
|
||||||
{
|
{
|
||||||
loaded_modules = g_hash_table_new(g_direct_hash, g_direct_equal);
|
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 */
|
/* now crawl the GNC_MODULE_PATH to find likely libraries */
|
||||||
gnc_module_system_refresh();
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user