From: Mads Martin Joergensen Date: Tue, 9 Aug 2005 16:10:40 +0000 (+0000) Subject: Remove an unneeded cast, which introduces type-punning. Modified to use FREE X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab66440c3da16ebba4aa29a32be84e4161b14d1b;p=neomutt Remove an unneeded cast, which introduces type-punning. Modified to use FREE instead of safe_free, since that seems to be the convention. I personally don't see the point. --- diff --git a/copy.c b/copy.c index 7dd415987..a5777c083 100644 --- a/copy.c +++ b/copy.c @@ -418,7 +418,7 @@ mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) /* clearing refs from memory */ for (t = refs; refs; refs = t->next, t = refs) - safe_free ((void **)&refs); + FREE (&refs); if (fputc ('\n', out) == EOF) return (-1);