]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fix mail_user_autoexpunge() return value to be initialized properly
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 24 Mar 2017 02:21:49 +0000 (04:21 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 10:05:06 +0000 (13:05 +0300)
src/lib-storage/mail-autoexpunge.c

index 501ed4d59bdc16afe504ddfa55cfcb75ea00e882..dbbd2bb969117d5d0dab9a3828ed9d19e0e43457 100644 (file)
@@ -229,7 +229,7 @@ unsigned int mail_user_autoexpunge(struct mail_user *user)
 {
        struct mailbox_autoexpunge_lock lock = { .fd = -1 };
        struct mail_namespace *ns;
-       unsigned int expunged_count;
+       unsigned int expunged_count = 0;
 
        for (ns = user->namespaces; ns != NULL; ns = ns->next) {
                if (ns->alias_for == NULL) {