[evolution-data-server] camel_vee_folder_new(): Add argument guards.



commit 7cf42fc13b1bd47ccaaef810d834e2917fab2798
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat May 7 01:01:09 2011 -0400

    camel_vee_folder_new(): Add argument guards.

 camel/camel-vee-folder.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c
index 8974d77..6e1a836 100644
--- a/camel/camel-vee-folder.c
+++ b/camel/camel-vee-folder.c
@@ -2026,6 +2026,9 @@ camel_vee_folder_new (CamelStore *parent_store, const gchar *full, guint32 flags
 	CamelVeeFolder *vf;
 	gchar *tmp;
 
+	g_return_val_if_fail (CAMEL_IS_STORE (parent_store), NULL);
+	g_return_val_if_fail (full != NULL, NULL);
+
 	if (CAMEL_IS_VEE_STORE (parent_store) && strcmp (full, CAMEL_UNMATCHED_NAME) == 0) {
 		vf = ((CamelVeeStore *)parent_store)->folder_unmatched;
 		g_object_ref (vf);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]