From e21b797d83b8adf0635b100c6ebfe6ccb8facfae Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 4 Jul 2000 02:33:15 +0000 Subject: Get rid of a compiler warning. svn path=/trunk/; revision=3881 --- mail/component-factory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mail/component-factory.c') 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); -- cgit v1.2.3