mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 20:42:14 +08:00
add MDBPATH search
fix segfault in mdb-tables
This commit is contained in:
@@ -56,7 +56,11 @@ int opt;
|
||||
mdb_init();
|
||||
|
||||
/* open the database */
|
||||
mdb = mdb_open (argv[optind]);
|
||||
if (!(mdb = mdb_open (argv[optind]))) {
|
||||
fprintf(stderr,"Couldn't open database.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
/* read the catalog */
|
||||
mdb_read_catalog (mdb, MDB_TABLE);
|
||||
|
||||
Reference in New Issue
Block a user