aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-07-11 03:28:20 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-07-11 03:28:20 +0800
commit8844e57744dfdda537911efc6b9a4d80e7eb4407 (patch)
tree5e1b11106095e0a96ef3266ac8f4126601de618f /mail
parenteb5bdfafc957dc92eee5c6ed7b53a987b9a03734 (diff)
downloadgsoc2013-evolution-8844e57744dfdda537911efc6b9a4d80e7eb4407.tar.gz
gsoc2013-evolution-8844e57744dfdda537911efc6b9a4d80e7eb4407.tar.zst
gsoc2013-evolution-8844e57744dfdda537911efc6b9a4d80e7eb4407.zip
Fix an unitialized variable error.
svn path=/trunk/; revision=4045
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-ops.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b500a09c60..9ed17f4279 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-10 Ettore Perazzoli <ettore@helixcode.com>
+
+ * mail-ops.c (forward_msg): Initialize `fwd_subj' to NULL if
+ `from' is NULL.
+
2000-07-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Fixed broken POP fetching
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 335b8e71f6..fdf3bbbf2c 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -699,7 +699,10 @@ forward_msg (GtkWidget *button, gpointer user_data)
fwd_subj = g_strdup_printf ("[%s] (forwarded message)",
from);
}
+ } else {
+ fwd_subj = NULL;
}
+
e_msg_composer_set_headers (composer, NULL, NULL, NULL, fwd_subj);
g_free (fwd_subj);