aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 4941915598..a374e1a8d5 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -1458,6 +1458,8 @@ freeze (CamelFolder *folder)
{
CAMEL_FOLDER_LOCK(folder, change_lock);
+ g_assert(folder->priv->frozen >= 0);
+
folder->priv->frozen++;
d(printf ("freeze(%p '%s') = %d\n", folder, folder->full_name, folder->priv->frozen));
@@ -1488,6 +1490,8 @@ thaw (CamelFolder * folder)
CAMEL_FOLDER_LOCK(folder, change_lock);
+ g_assert(folder->priv->frozen > 0);
+
folder->priv->frozen--;
d(printf ("thaw(%p '%s') = %d\n", folder, folder->full_name, folder->priv->frozen));