From e42b0f20616d6fa2721389b207da9e36cc4c196e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 12 Nov 2001 23:22:36 +0000 Subject: Added a g_return_val_if_fail for folder_name != NULL. 2001-11-12 Jeffrey Stedfast * camel-store.c (camel_store_get_folder): Added a g_return_val_if_fail for folder_name != NULL. svn path=/trunk/; revision=14676 --- camel/ChangeLog | 5 +++++ camel/camel-store.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * camel-store.c (camel_store_get_folder): Added a + g_return_val_if_fail for folder_name != NULL. + 2001-11-08 Jeffrey Stedfast * 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); } -- cgit