[cvs] bogofilter/src bogoutil.c,1.44,1.45
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-07-23 15:43:25
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv19135 Modified Files: bogoutil.c Log Message: Complain when the database can't be opened. Index: bogoutil.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogoutil.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- bogoutil.c 23 Jul 2003 13:32:14 -0000 1.44 +++ bogoutil.c 23 Jul 2003 15:43:20 -0000 1.45 @@ -158,6 +158,7 @@ dbh = db_open(".", 1, &path, open_mode); if (dbh == NULL) { + fprintf(stderr, "Can't open file %s\n", path); exit(2); } else { int r = db_foreach(dbh, funct, userdata); @@ -511,11 +512,11 @@ free_wordlists(); if (!onlyprint) { + size_t count; + char filepath1[PATH_LEN]; char filepath2[PATH_LEN]; char *filepaths[2]; - - size_t count; filepaths[0] = filepath1; filepaths[1] = filepath2; |