[evolution-kolab] libekolabutil: relaxed assertions on function args a bit
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] libekolabutil: relaxed assertions on function args a bit
- Date: Wed, 10 Oct 2012 18:39:15 +0000 (UTC)
commit d942be56641084a63cf57438b95a4a30d66ba816
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Wed Oct 10 18:50:45 2012 +0200
libekolabutil: relaxed assertions on function args a bit
src/libekolabutil/kolab-util-folder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libekolabutil/kolab-util-folder.c b/src/libekolabutil/kolab-util-folder.c
index fe3b5ba..9bba245 100644
--- a/src/libekolabutil/kolab-util-folder.c
+++ b/src/libekolabutil/kolab-util-folder.c
@@ -116,7 +116,7 @@ kolab_util_folder_type_get_id (const gchar *typestring)
const gchar*
kolab_util_folder_type_get_string (KolabFolderTypeID foldertype)
{
- g_assert (foldertype < KOLAB_FOLDER_LAST_TYPE);
+ g_return_val_if_fail (foldertype < KOLAB_FOLDER_LAST_TYPE, NULL);
util_folder_init ();
@@ -180,7 +180,7 @@ kolab_util_folder_type_match_with_context_id (KolabFolderTypeID type_id,
const gchar*
kolab_util_folder_perm_get_string (KolabFolderPermID perm_id)
{
- g_assert (perm_id < KOLAB_FOLDER_LAST_PERM);
+ g_return_val_if_fail (perm_id < KOLAB_FOLDER_LAST_PERM, NULL);
return kolab_folder_perm_inv_map[perm_id];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]