aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}