Remove abort(). Fix sqlite finalization.

master 1.0
Luca Bruno 2010-03-15 16:32:24 +01:00
parent 062ad81d41
commit 360d3064d3
2 changed files with 2 additions and 1 deletions

View File

@ -177,6 +177,7 @@ tdpkg_cache_finalize (void)
if (db)
sqlite3_close (db);
sqlite3_shutdown ();
db = NULL;
}
char*

View File

@ -36,7 +36,7 @@ static TCHDB* db = NULL;
static int in_transaction = 0;
static int is_write = 0;
#define tc_error(ret) { abort();fprintf (stderr, "tdpkg tokio: %s\n", tchdberrmsg (tchdbecode (db))); return ret; }
#define tc_error(ret) { fprintf (stderr, "tdpkg tokio: %s\n", tchdberrmsg (tchdbecode (db))); return ret; }
static int
_tokyo_init (int write)