Skip to content

Commit

Permalink
quota: Fix to earlier commit 62f2f6b
Browse files Browse the repository at this point in the history
expunge_uids may become empty with prev_idx > 0
  • Loading branch information
sirainen committed Apr 29, 2016
1 parent 22b0b59 commit e7c85ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/quota/quota-storage.c
Expand Up @@ -341,7 +341,8 @@ static void quota_mailbox_sync_notify(struct mailbox *box, uint32_t uid,
try and get the message sizes at this point. Rely on sizes that
we saved earlier, or recalculate the whole quota if we don't know
the size. */
if (!array_is_created(&qbox->expunge_uids)) {
if (!array_is_created(&qbox->expunge_uids) ||
array_is_empty(&qbox->expunge_uids)) {
i = count = 0;
} else {
uids = array_get(&qbox->expunge_uids, &count);
Expand Down

0 comments on commit e7c85ff

Please sign in to comment.