[Evolution-hackers] [CamelStore] clarifying of documentation becomes a minor change of code
- From: Paul Bolle <pebolle tiscali nl>
- To: evolution-hackers gnome org
- Subject: [Evolution-hackers] [CamelStore] clarifying of documentation becomes a minor change of code
- Date: Mon, 01 Sep 2008 18:19:54 +0200
I wanted to clarify the documentation for camel_store_free_folder_info()
a bit. In found myself altering its implementation. Rationale is
(obviously) to simply make sure that camel_store_free_folder_info()
handles a NULL return of camel_store_get_folder_info() gracefully so my
documentation change is actually always correct. Any comments on this
(entirely untested) change before spamming b.g.o.?
Paul
---
Index: camel/camel-store.c
===================================================================
--- camel/camel-store.c (revision 9463)
+++ camel/camel-store.c (working copy)
@@ -882,11 +882,15 @@
* @store: a #CamelStore object
* @fi: a #CamelFolderInfo as gotten via #camel_store_get_folder_info
*
- * Frees the data returned by #camel_store_get_folder_info
+ * Frees the data returned by #camel_store_get_folder_info. If @fi is %NULL,
+ * nothing is done, the routine simply returns.
**/
void
camel_store_free_folder_info (CamelStore *store, CamelFolderInfo *fi)
{
+ if (!fi)
+ return;
+
g_return_if_fail (CAMEL_IS_STORE (store));
CS_CLASS (store)->free_folder_info (store, fi);
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]