aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-07-04 10:33:15 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-07-04 10:33:15 +0800
commite21b797d83b8adf0635b100c6ebfe6ccb8facfae (patch)
treebc952de86b342e7e77d29c52014ec06029d3ec29 /mail
parent4ae033dd397990b79a6d1ff40554e286306e7e66 (diff)
downloadgsoc2013-evolution-e21b797d83b8adf0635b100c6ebfe6ccb8facfae.tar.gz
gsoc2013-evolution-e21b797d83b8adf0635b100c6ebfe6ccb8facfae.tar.zst
gsoc2013-evolution-e21b797d83b8adf0635b100c6ebfe6ccb8facfae.zip
Get rid of a compiler warning.
svn path=/trunk/; revision=3881
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/component-factory.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index dea8c9be1e..37c2b689de 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-03 Ettore Perazzoli <ettore@helixcode.com>
+
+ * component-factory.c (create_folder): Get rid of a compiler
+ warning by making sure `folder' is always initialized to some
+ value for any code path.
+
2000-07-03 Dan Winship <danw@helixcode.com>
* message-list.c (select_msg): call mail_display_set_message with
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 2b2f33eda5..1237b1f638 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -126,12 +126,16 @@ create_folder (EvolutionShellComponent *shell_component,
folder = camel_store_get_folder (store, "mbox",
TRUE, &ex);
gtk_object_unref (GTK_OBJECT (store));
+ } else {
+ folder = NULL;
}
+
if (!camel_exception_is_set (&ex)) {
gtk_object_unref (GTK_OBJECT (folder));
result = Evolution_ShellComponentListener_OK;
- } else
+ } else {
result = Evolution_ShellComponentListener_INVALID_URI;
+ }
}
camel_exception_clear (&ex);