compilation problem [was: segfault on rfc2047-like subject]

David Relson relson at osagesoftware.com
Sat Oct 9 01:29:43 CEST 2004


On Fri, 8 Oct 2004 10:36:04 -0400
Clint Adams wrote:

> The following message causes 0.92.7 to segfault.  I'd try with current
> CVS, but it won't compile.

Eh?  Won't compile?  Works fine for me and everyone else I'm aware of.

What compiler (gcc?) version are you using?  What message(s) are you
getting.

The only change I know of between 0.92.7 and cvs (until the last hour)
was a fix made to bogotune.c several days ago, i.e.

diff -u -r --exclude-from=diff.excl 0927/src/bogotune.c
cvs/src/bogotune.c
--- 0927/src/bogotune.c	2004-09-30 23:26:09.000000000 -0400
+++ cvs/src/bogotune.c	2004-10-08 19:19:14.144027720 -0400
@@ -1,4 +1,4 @@
-/* $Id: bogotune.c,v 1.160 2004/10/01 03:26:09 relson Exp $ */
+/* $Id: bogotune.c,v 1.161 2004/10/03 22:35:58 m-a Exp $ */
 

/**********************************************************************
*******
 
@@ -876,10 +876,10 @@
 		case 'd':
 		    argc -= 1;
 		    ds_file = *++argv;
-		    ds_flag = (ds_flag = DS_NONE) ? DS_DSK : DS_ERR;
+		    ds_flag = (ds_flag == DS_NONE) ? DS_DSK : DS_ERR;
 		    break;
 		case 'D':
-		    ds_flag = (ds_flag = DS_NONE) ? DS_RAM : DS_ERR;
+		    ds_flag = (ds_flag == DS_NONE) ? DS_RAM : DS_ERR;
 		    break;
 		case 'E':
 		    esf_flag ^= true;



More information about the bogofilter-dev mailing list