aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-11-13 07:22:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-11-13 07:22:36 +0800
commite42b0f20616d6fa2721389b207da9e36cc4c196e (patch)
treeae24bda007844ef8ca778987c46783d5490f3529 /camel
parent686c19812f7fe3d336f7dbda7440a76fdb344455 (diff)
downloadgsoc2013-evolution-e42b0f20616d6fa2721389b207da9e36cc4c196e.tar.gz
gsoc2013-evolution-e42b0f20616d6fa2721389b207da9e36cc4c196e.tar.zst
gsoc2013-evolution-e42b0f20616d6fa2721389b207da9e36cc4c196e.zip
Added a g_return_val_if_fail for folder_name != NULL.
2001-11-12 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_get_folder): Added a g_return_val_if_fail for folder_name != NULL. svn path=/trunk/; revision=14676
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-store.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 747b3490a0..964acf2727 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-12 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-store.c (camel_store_get_folder): Added a
+ g_return_val_if_fail for folder_name != NULL.
+
2001-11-08 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (crypto_exec_with_passwd): If any of the
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 2b77d048c6..41676c53f7 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -236,6 +236,8 @@ camel_store_get_folder (CamelStore *store, const char *folder_name, guint32 flag
{
CamelFolder *folder = NULL;
+ g_return_val_if_fail (folder_name != NULL, NULL);
+
CAMEL_STORE_LOCK(store, folder_lock);
if (store->folders) {
@@ -258,7 +260,7 @@ camel_store_get_folder (CamelStore *store, const char *folder_name, guint32 flag
CAMEL_STORE_LOCK(store, cache_lock);
g_hash_table_insert (store->folders, g_strdup (folder_name), folder);
-
+
camel_object_hook_event (CAMEL_OBJECT (folder), "finalize", folder_finalize, store);
CAMEL_STORE_UNLOCK(store, cache_lock);
}