]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Fix pop3_logout_format=%{deleted_size} expansion when there are no deletions
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 20 Oct 2016 09:24:44 +0000 (12:24 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 20 Oct 2016 20:04:41 +0000 (23:04 +0300)
Should be "0", not empty string.

src/pop3/pop3-client.c

index a0a00aa000782bb3090b9fca8366daef159436a6..4f5008c90ddf529c6d1b9189538dd9e3f0de8d5b 100644 (file)
@@ -568,7 +568,7 @@ static const char *client_stats(struct client *client)
                tab[9].value = "";
        tab[10].value = client->session_id;
        tab[11].value = client->delete_success ?
-               dec2str(client->deleted_size) : 0;
+               dec2str(client->deleted_size) : "0";
 
        str = t_str_new(128);
        var_expand(str, client->set->pop3_logout_format, tab);