Don't look for dbi drivers if dbi_initialize failed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19237 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-06-07 20:22:02 +00:00
parent 5b17cdc05c
commit a13c740c7f

View File

@ -1033,8 +1033,9 @@ gnc_module_init_backend_dbi(void)
PINFO( "GNC_DBD_DIR not set: using libdbi built-in default\n");
}
/* dbi_initialize returns -1 in case of errors */
num_drivers = dbi_initialize( driver_dir );
if ( num_drivers == 0 )
if ( num_drivers <= 0 )
{
PWARN( "No DBD drivers found\n" );
}