aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-26 15:53:06 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-26 15:53:06 +0800
commit7832c0f051fc31e8357e4f99da35e60d36c68026 (patch)
treed9c8fa3a1d56b56aaa8d176871ad66fc24f36d2c /mail
parent704830048ee19963309dc59dca077653a50634d6 (diff)
downloadgsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.tar
gsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.tar.gz
gsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.tar.bz2
gsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.tar.lz
gsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.tar.xz
gsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.tar.zst
gsoc2013-evolution-7832c0f051fc31e8357e4f99da35e60d36c68026.zip
initialise desc to NULL before using it later on. gcc doesn't warn on this
2004-05-26 Not Zed <NotZed@Ximian.com> * mail-vfolder.c (vfolder_adduri_desc): initialise desc to NULL before using it later on. gcc doesn't warn on this if you're not optimising. Sigh. Probably fix #59070, #59060, #58972 and friends. svn path=/trunk/; revision=26096
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-vfolder.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 96c941fb12..ed7742d90d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2004-05-26 Not Zed <NotZed@Ximian.com>
+ * mail-vfolder.c (vfolder_adduri_desc): initialise desc to NULL
+ before using it later on. gcc doesn't warn on this if you're not
+ optimising. Sigh. Probably fix #59070, #59060, #58972 and
+ friends.
+
* importers/evolution-mbox-importer.c (create_control_fn): set the
default selection to inbox.
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 3781e22ae9..1f1f5eeec7 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -202,7 +202,7 @@ static char *
vfolder_adduri_desc(struct _mail_msg *mm, int done)
{
struct _adduri_msg *m = (struct _adduri_msg *)mm;
- char *euri, *desc;
+ char *euri, *desc = NULL;
/* Yuck yuck. Lookup the account name and use that to describe the path */
/* We really need to normalise this across all of camel and evolution :-/ */