summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mailbox/iterator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mailbox/iterator.c b/mailbox/iterator.c
index 9fa24ed07..b3613329d 100644
--- a/mailbox/iterator.c
+++ b/mailbox/iterator.c
@@ -35,7 +35,7 @@ mu_iterator_create (mu_iterator_t *piterator, void *owner)
return MU_ERR_OUT_PTR_NULL;
if (owner == NULL)
return EINVAL;
- iterator = calloc (sizeof (*iterator), 1);
+ iterator = calloc (1, sizeof (*iterator));
if (iterator == NULL)
return ENOMEM;
iterator->owner = owner;
@@ -239,7 +239,7 @@ mu_iterator_detach (mu_iterator_t *root, mu_iterator_t iterator)
if (itr)
{
if (prev)
- prev->next = itr->next;
+ prev->next_itr = itr->next_itr;
else
*root = itr->next_itr;
}

Return to:

Send suggestions and report system problems to the System administrator.