[cvs] bogofilter/src wordlists_base.c,1.44,1.45
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: David R. <re...@us...> - 2005-05-06 01:23:28
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13392 Modified Files: wordlists_base.c Log Message: Minor refactoring. Index: wordlists_base.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/wordlists_base.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- wordlists_base.c 5 May 2005 23:14:02 -0000 1.44 +++ wordlists_base.c 6 May 2005 01:23:19 -0000 1.45 @@ -91,13 +91,8 @@ } /* append to list */ - if (list_ptr->next == NULL) { - list_ptr->next=n; - return; - } - - /* insert into middle of list */ - if (list_ptr->next->override > override) { + if (list_ptr->next == NULL || + list_ptr->next->override > override) { n->next=list_ptr->next; list_ptr->next=n; return; |