[evolution-kolab] CamelKolabIMAPXProvider: g_return_if_fail() if CamelIMAPXProvider cannot be loaded
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] CamelKolabIMAPXProvider: g_return_if_fail() if CamelIMAPXProvider cannot be loaded
- Date: Thu, 26 Jul 2012 09:02:52 +0000 (UTC)
commit 2759a82ab9b015ab4becde4817200ddaf1eb030b
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Jul 26 10:28:11 2012 +0200
CamelKolabIMAPXProvider: g_return_if_fail() if CamelIMAPXProvider cannot be loaded
* return with a warning message instead
of blowing up with an assertion failure
src/camel/camel-kolab-imapx-provider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-kolab-imapx-provider.c b/src/camel/camel-kolab-imapx-provider.c
index b8edb85..f6715ce 100644
--- a/src/camel/camel-kolab-imapx-provider.c
+++ b/src/camel/camel-kolab-imapx-provider.c
@@ -141,7 +141,7 @@ camel_kolab_imapx_provider_module_init (void)
g_error_free (tmp_err);
}
/* last resort... */
- g_assert (imapx_provider != NULL);
+ g_return_if_fail (imapx_provider != NULL);
kolab_provider.object_types[CAMEL_PROVIDER_STORE] = camel_kolab_imapx_store_get_type ();
kolab_provider.object_types[CAMEL_PROVIDER_TRANSPORT] = G_TYPE_INVALID;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]