From: Timo Sirainen Date: Thu, 20 Oct 2016 09:24:44 +0000 (+0300) Subject: pop3: Fix pop3_logout_format=%{deleted_size} expansion when there are no deletions X-Git-Tag: 2.2.26~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9227c6f2040f426a79807fbac3e55d44c749d85b;p=thirdparty%2Fdovecot%2Fcore.git pop3: Fix pop3_logout_format=%{deleted_size} expansion when there are no deletions Should be "0", not empty string. --- diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index a0a00aa000..4f5008c90d 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -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);