[cvs] bogofilter main.c,1.95,1.96

Matthias Andree matthias.andree at gmx.de
Tue Dec 17 13:08:38 CET 2002


relson at users.sourceforge.net writes:

> Update of /cvsroot/bogofilter/bogofilter
> In directory sc8-pr-cvs1:/tmp/cvs-serv28182
>
> Modified Files:
> 	main.c 
> Log Message:
> Provide correct to unlink(). 
>
>
> Index: main.c
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/main.c,v
> retrieving revision 1.95
> retrieving revision 1.96
> diff -u -d -r1.95 -r1.96
> --- main.c	13 Dec 2002 21:00:08 -0000	1.95
> +++ main.c	17 Dec 2002 00:59:02 -0000	1.96
> @@ -111,7 +111,7 @@
>  }
>  
>  static void cleanup_exit(int exitcode, int killfiles) {
> -    if (killfiles && *outfname) unlink(*outfname);
> +    if (killfiles && outfname[0] != '\0') unlink(outfname);
>      exit(exitcode);
>  }

Thanks for fixing the unlink(2) argument. The *outfname was fine
though. :-]

-- 
Matthias Andree




More information about the bogofilter-dev mailing list