]> granicus.if.org Git - mutt/commitdiff
Avoid a dangling pointer in mutt_message_to_7bit().
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 21 Sep 1998 12:49:50 +0000 (12:49 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 21 Sep 1998 12:49:50 +0000 (12:49 +0000)
sendlib.c

index d0d15c3d3e50904769a2b3026206b4d7a8bbec9f..45bbd68dfc41208ce4ddedca9159d6075474f422 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -779,6 +779,7 @@ void mutt_message_to_7bit (BODY *a, FILE *fp)
   }
   a->length = sb.st_size;
   mutt_free_body (&a->parts);
+  a->hdr->content = NULL;
 }
 
 static void transform_to_7bit (BODY *a, FILE *fpin)