[cvs] bogofilter/src bogoreader.c,1.37,1.38
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-10-09 03:18:33
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv23595 Modified Files: bogoreader.c Log Message: Use argc to keep track of args. Index: bogoreader.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogoreader.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- bogoreader.c 6 Oct 2003 00:25:26 -0000 1.37 +++ bogoreader.c 9 Oct 2003 03:18:29 -0000 1.38 @@ -297,8 +297,11 @@ * according to their type */ static bool b_args_next_mailstore(void) { - if (!*argv) return false; - filename = *(argv++); + if (argc <= 0) + return false; + filename = *argv; + argc -= 1; + argv += 1; return open_mailstore(filename); } |