[cvs] bogofilter/src datastore_db.c,1.89,1.90
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2004-03-01 10:55:04
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6429/src Modified Files: datastore_db.c Log Message: Fix bus error when the DBENV hasn't previously been initialized. Could be triggered for instance by "bogoutil -d /nonexistent". Index: datastore_db.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_db.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -d -r1.89 -r1.90 --- datastore_db.c 25 Feb 2004 03:11:31 -0000 1.89 +++ datastore_db.c 1 Mar 2004 10:44:00 -0000 1.90 @@ -656,6 +656,8 @@ } void db_cleanup(void) { + if (!init) + return; if (dbe) dbe->close(dbe, 0); dbe = NULL; |