<<< Date Index >>>     <<< Thread Index >>>

Re: strict aliasing due to wrong cast



On Tuesday, 09 August 2005 at 14:05, Mads Martin Joergensen wrote:
> Hey all,
> 
> This patch removes an unneeded cast, which introduces type-punning.
> 
> +++ copy.c      9 Aug 2005 11:58:28 -0000
> @@ -418,7 +418,7 @@
>  
>         /* clearing refs from memory */
>         for (t = refs; refs; refs = t->next, t = refs)
> -         safe_free ((void **)&refs);
> +         safe_free (&refs);
>  
>         if (fputc ('\n', out) == EOF)
>           return (-1);

Applied, thanks (with safe_free replaced by FREE since mutt really
enjoys using macros, for reasons I don't understand).