aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-local.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-14 02:24:57 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-14 02:24:57 +0800
commit550d31addc0fc87056954185af4975b65ec23e1c (patch)
tree8ce9b2073d9533a07ac646f409b3a50f60540695 /mail/mail-local.c
parent8f0aec06ba1afca6f072a578212bb08e75f04a0b (diff)
downloadgsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.tar
gsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.tar.gz
gsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.tar.bz2
gsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.tar.lz
gsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.tar.xz
gsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.tar.zst
gsoc2013-evolution-550d31addc0fc87056954185af4975b65ec23e1c.zip
Fix some uninitialized variables.
2001-02-13 Christopher James Lahey <clahey@ximian.com> * mail-local.c (do_reconfigure_folder): Fix some uninitialized variables. svn path=/trunk/; revision=8206
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r--mail/mail-local.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c
index 7b5b744018..fca9e75e1e 100644
--- a/mail/mail-local.c
+++ b/mail/mail-local.c
@@ -690,7 +690,7 @@ static void
do_reconfigure_folder(gpointer in_data, gpointer op_data, CamelException *ex)
{
reconfigure_folder_input_t *input = (reconfigure_folder_input_t *) in_data;
- MailLocalFolder *local_folder;
+ MailLocalFolder *local_folder = NULL;
CamelStore *fromstore = NULL, *tostore = NULL;
char *fromurl = NULL, *tourl = NULL;
CamelFolder *fromfolder = NULL, *tofolder = NULL;
@@ -699,7 +699,7 @@ do_reconfigure_folder(gpointer in_data, gpointer op_data, CamelException *ex)
char *metapath;
char *tmpname;
CamelURL *url = NULL;
- struct _local_meta *meta;
+ struct _local_meta *meta = NULL;
guint32 flags;
d(printf("reconfiguring folder: %s to type %s\n", input->fb->uri, input->newtype));
@@ -825,7 +825,7 @@ do_reconfigure_folder(gpointer in_data, gpointer op_data, CamelException *ex)
}
cleanup:
- if (!local_folder->folder)
+ if (local_folder && !local_folder->folder)
do_register_folder (local_folder, NULL, ex);
if (tofolder)
camel_object_unref (CAMEL_OBJECT (tofolder));
@@ -835,7 +835,8 @@ do_reconfigure_folder(gpointer in_data, gpointer op_data, CamelException *ex)
camel_object_unref (CAMEL_OBJECT (fromstore));
if (tostore)
camel_object_unref (CAMEL_OBJECT (tostore));
- free_metainfo(meta);
+ if (meta)
+ free_metainfo(meta);
g_free(fromurl);
g_free(tourl);
if (url)