[evolution-data-server] The 'operation' in camel_mime_filter_progress_new can be NULL



commit 6aa1c67b640c308d791ea5ab5fd916bfcfb08dfa
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 26 19:28:42 2010 +0200

    The 'operation' in camel_mime_filter_progress_new can be NULL

 camel/camel-mime-filter-progress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-mime-filter-progress.c b/camel/camel-mime-filter-progress.c
index ccf4ba7..6cdb3ce 100644
--- a/camel/camel-mime-filter-progress.c
+++ b/camel/camel-mime-filter-progress.c
@@ -133,7 +133,7 @@ camel_mime_filter_progress_new (CamelOperation *operation,
 	CamelMimeFilter *filter;
 	CamelMimeFilterProgressPrivate *priv;
 
-	g_return_val_if_fail (operation != NULL, NULL);
+	/* 'operation' can be NULL, then it means an active thread's operation */
 
 	filter = g_object_new (CAMEL_TYPE_MIME_FILTER_PROGRESS, NULL);
 	priv = CAMEL_MIME_FILTER_PROGRESS_GET_PRIVATE (filter);



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