diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-11-13 07:22:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-11-13 07:22:36 +0800 |
commit | e42b0f20616d6fa2721389b207da9e36cc4c196e (patch) | |
tree | ae24bda007844ef8ca778987c46783d5490f3529 /camel/camel-store.c | |
parent | 686c19812f7fe3d336f7dbda7440a76fdb344455 (diff) | |
download | gsoc2013-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/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |