From 353f8187b88ee39b08d33845461bc853c454f4d5 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 28 May 2001 21:23:32 +0000 Subject: Fix a bug that could cause a crash on messages with an empty subject. * mail-format.c (write_text_header): Fix a bug that could cause a crash on messages with an empty subject. Oops. svn path=/trunk/; revision=10034 --- mail/ChangeLog | 5 +++++ mail/mail-format.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 474f9455cb..a685ad6b77 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-05-28 Dan Winship + + * mail-format.c (write_text_header): Fix a bug that could cause a + crash on messages with an empty subject. Oops. + 2001-05-27 Jeffrey Stedfast * message-list.c: Removed the etable spec string. diff --git a/mail/mail-format.c b/mail/mail-format.c index fcaa02c130..af6a870b22 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -661,7 +661,7 @@ write_text_header (const char *name, const char *value, int flags, GtkHTML *html mail_html_write (html, stream, "%s ", encoded); - if (value) + if (value && *value) g_free (encoded); } -- cgit